Most Popular

1500 questions
217
votes
5 answers

Really verbose way to test Git connection over SSH?

When using GIT, I have problems with using GIT over SSH , and since it works just fine both from work, and at home with a different modem, it's obviously my home modem that is acting up. I have no problems connecting over HTTP. So, I'm assuming it…
IQAndreas
  • 3,306
217
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 executed. I'm a…
216
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 : apt…
C0deDaedalus
  • 2,585
216
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,399
216
votes
14 answers

No more disk space: How can I find what is taking up the space?

I've run into a problem on one of my servers running 16.04: there is no disk space left. I have no idea what is taking up the space. Is there a command to list the current directory sizes, so I can traverse and end up in the directory taking up all…
216
votes
10 answers

If I build a package from source how can I uninstall or remove completely?

I used source code to build one package such as below: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc…
user25165
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
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,137
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,451
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
  • 2
  • 14
  • 5
216
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,559
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
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