Most Popular

1500 questions
216
votes
7 answers

How can I make my shell prompt look like a cheeseburger?

I want my shell prompt to look like a cheeseburger! It would be nice if it also displayed: username, hostname, and current directory.
216
votes
3 answers

How to print the directory tree in terminal

What is the command that can be used to draw the directory tree inside the terminal emulator?
Maythux
  • 87,123
216
votes
3 answers

How to use Undo functionality in Nano?

I use the commmand line text editor nano. How do I undo an action while editing text? For example: I typed some text and then changed my mind. Now I want to return to previous state. How?
user44
  • 2,263
216
votes
11 answers

How can I create a select menu in a shell script?

I'm creating a simple bash script and I want to create a select menu in it, like this: $./script echo "Choose your option:" 1) Option 1 2) Option 2 3) Option 3 4) Quit And according to user's choice, I want different actions to be…
216
votes
15 answers

How to mount an ISO file?

I'm running into trouble trying to mount a large iso: dev@dev-OptiPlex-745:~$ sudo mount -o loop /home/dev/Hämtningar/matlab2011a_64.iso /cdrom mount: warning: /cdrom seems to be mounted read-only. dev@dev-OptiPlex-745:~$ Can you tell me how I…
215
votes
1 answer

apt gives “Unstable CLI Interface” warning

I am writing a script that needs to read a file containing information of a package for which I wrote this line apt show $PACKAGE_NAME > pack_info.txt However this doesn't creates the pack_info.txt file and always gives this Warning : WARNING :…
C0deDaedalus
  • 2,575
  • 4
  • 14
  • 19
215
votes
11 answers

How to run an alias in a shell script?

I have an executable file mpiexec, whose full path is ~/petsc-3.2-p6/petsc-arch/bin/mpiexec. Since I want to execute this command in different directories (without having to retype the entire path), I setup an alias in my home .bashrc file: alias…
Paul
  • 2,389
215
votes
9 answers

How to find out how much disk space is remaining?

What is the command to find out how much disk space is being used/remaining?
hawkeye
  • 4,107
215
votes
6 answers

Kworker, what is it and why is it hogging so much CPU?

I recently upgraded to the Kubuntu Natty Beta 1 and I've been having a lot of issues with the process kworker. At moments it uses almost half my CPU. Also, strangely enough it seems to affect my USB ports; whenever I plug in an USB drive, the…
davorao
  • 7,177
215
votes
19 answers

How can I find my hardware details?

Is there any built-in software or terminal method allowing me to view the hardware profiles on my system? Windows equivalent of such a feature would be Device Manager.
Oxwivi
  • 18,499
215
votes
14 answers

How do I mount shared folders in Ubuntu using VMware tools?

Experts. I've successfully installed VMware tools for Ubuntu. Everything seems to work fine, but shared folders were not mounted automatically. How do I get them to work? If I run vmware-hgfsclient in terminal, I get the list of shared folders, but…
V-Light
  • 2,273
215
votes
2 answers

How to add programs to the Unity Launcher or Ubuntu Dock?

How can I add new programs to the launcher (or the dock in Ubuntu 17.10 and later) in Ubuntu?
215
votes
5 answers

How to run a cron job using the sudo command

Is it possible to run a cron job which needs the sudo command? Like: sudo rm somefile
sayem siam
  • 2,371
214
votes
5 answers

Is it possible to make writing to .bash_history immediate?

I often open lots and lots of terminals (right now, I have seven open on this workspace) and I often search history with grep to find a command I've just written recently, but I don't want to hunt down the terminal and then scroll up and hunt for…
Matt
  • 10,201
214
votes
28 answers

How do I download a YouTube video?

What are instructions on how to download videos from YouTube? Notice: Terms of Service Violation Please be aware that by following any of the answers below, you will be violating YouTube's Terms of Service (TOS). In particular, from Section…
cathy
  • 203