Most Popular

1500 questions
276
votes
10 answers

How to list all symbolic links in a directory

I have a symbolic link in my /var/www/ directory that links to WordPress. When I run the command ls -la from the /var/www/ directory the link to WordPress doesn't show up. Is there a way to list all of the symbolic links that are in a directory?
Isaac
  • 2,955
  • 3
  • 14
  • 13
276
votes
6 answers

When installing user applications, where do "best practices" suggest they be located?

Occasionally I install applications manually, rather than using apt or another package manager. What location (/usr/, /usr/local/, /opt/, /home/, etc.) is suggested by "best practices" for the installation of user applications?
citadelgrad
  • 2,925
275
votes
16 answers

How to send mail from the command line?

How to send mail from the command line?
274
votes
8 answers

vi shortcut to delete "until the next X character"

I understand that vi has shortcut keys to delete characters, words and lines with various options. However, I could not find this: delete from the cursor to the next specified character For example, I might type du" expecting the editor to…
kctang
  • 2,843
274
votes
5 answers

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

I'm trying to run this command in the terminal: sudo apt install software-properties-common This is the error message I get: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the…
GoodNite
  • 2,741
273
votes
12 answers

How can I remove Amazon search results from the dash or disable the feature?

How can I disable Amazon search results in the Dash?
Jorge Castro
  • 71,754
273
votes
9 answers

No such file or directory? But the file exists!

I've downloaded a game (Shank) but the bin file doesn't run. The error that is shown when I try to launch the executable is: bash: ./shank-linux-120720110-1-bin: No such file or directory
Francesco
  • 2,961
271
votes
9 answers

How to get the MD5 hash of a string directly in the terminal?

How do I get the MD5 hash of a string directly from the terminal? For example, I want the string abcdefg hashed. Currently the md5sum command only accepts a filename as input. I want to simply enter the following line and everything be done…
2hamed
  • 3,313
271
votes
7 answers

Why do I get "wrong fs type, bad option, bad superblock" error?

When mounting an NFS directory by doing: sudo mount 192.168.1.5:/home/shared /mnt/common I get the following error: mount: wrong fs type, bad option, bad superblock on 192.168.1.5:/home/shared, missing codepage or helper program, or other error…
Arseni Mourzenko
  • 4,582
  • 5
  • 20
  • 34
271
votes
8 answers

How to control fan speed?

How can I control the computer's fan speed? On Windows there is a wonderful program called SpeedFan.
grizwako
  • 5,635
269
votes
4 answers

How to check RAM size?

What is the command to find the RAM size in computer? I want to see result in MB.
KonradDos
  • 2,971
269
votes
6 answers

Where are sudo's insults stored?

For those who like humour, sudo can be configured to print a random more or less insulting or funny phrase instead of the neutral Sorry, try again. by adding the line below to /etc/sudoers (using the command sudo visudo, not editing…
Byte Commander
  • 107,489
269
votes
11 answers

How do I start/stop mysql server?

I tried to find in some articles describing how to correctly start & stop mysql server. I found this link: How to start/stop MySql server on Ubuntu 8.04 | Abhi's Blogging World I ran this command: /etc/init.d/mysql start but I see this error…
user471011
  • 3,559
269
votes
4 answers

Any way to search for text within nano?

Nano is the editor I use in command prompts. When I open a large file I would like to search for some text (think Ctrl + F). Is there a way to do this?
JD Isaacks
  • 5,287
268
votes
15 answers

How to determine which window manager (and desktop environment) is running

Is there any way (such as a command or environmental variable) to determine what window manager is the one actively running in the current session?
Anonymous
  • 11,699