Most Popular

1500 questions
93
votes
13 answers

Tips for remembering the order of parameters for ln?

I have used ln to write symbolic links for years but I still get the order of parameters the wrong away around. This usually has me writing: ln -s a b and then looking at the output to remind myself. I always imagine to be a -> b as I read it when…
Zhro
  • 2,669
93
votes
5 answers

What is the difference between 'nobootwait' and 'nofail' in fstab?

In this question I asked how to prevent a media failure from halting the system boot process. However, I got two suggestions for /etc/fstab options nobootwait nofail What is the difference between the two?
Evan Carroll
  • 30,763
  • 48
  • 183
  • 315
93
votes
7 answers

How to trust self-signed certificate in cURL command line?

I've created a self-signed certificate for foo.localhost using a Let's Encrypt recommendation using this Makefile: include ../.env configuration = csr.cnf certificate = self-signed.crt key = self-signed.key .PHONY: all all:…
l0b0
  • 51,350
93
votes
4 answers

Why does Linux use LF as the newline character?

As far as I know, every operating system has a different way to mark the end of line (EOL) character. Commercial operating systems use carriage return for EOL (carriage return and line feed on Windows, carriage return only on Mac). Linux, on the…
93
votes
9 answers

How to download package not install it with apt-get command?

sudo apt-get install pppoe will download pppoe package and install it. Is it possible to just download pppoe package and not install it with apt-get command? wget…
showkey
  • 323
93
votes
3 answers

What is the best text-mode web browser?

I'm looking for one that is frequently updated and full-featured.
Zignd
  • 3,103
93
votes
5 answers

How can I make a program executable from everywhere

What should I do if I want to be able to run a given program regardless of my current directory? Should I create a symbolic link to the program in the /bin folder?
aneuryzm
  • 1,925
93
votes
7 answers

Is it possible to mount a gzip compressed dd image on the fly?

I like to create an image backup the first time I'm backing up a system. After this first time I use rsync to do incremental backups. My usual image backup is as follows: Mount and zero out the empty space: dd if=/dev/zero of=temp.dd bs=1M rm…
g19fanatic
  • 1,035
93
votes
4 answers

How can I make environment variables "exported" in a shell script stick around?

I have multiple Amazon EC2 accounts and want to quickly be able to switch variables, such as $EC2_HOME, using a script. I have have a shell script set up like this: #!/bin/sh export EC2_HOME=/home/me/.ec2 echo $EC2_HOME When I run the script I know…
cwd
  • 45,389
93
votes
2 answers

What are the differences between the various partition tables?

When I am looking to create a new partition table, I have the following options: aix amiga bsd dvh gpt mac msdos pc98 sun loop The default in gparted appears to be msdos which I guess is an 'MBR' partition table. However gpt is more recent, but…
user168419
93
votes
6 answers

How to pass password to mysql command line

I have MySQL password saved on a file foo.php, for example P455w0rd, when I try to use it: $ cat foo.php | grep '$dbpwd=' | cut -d '"' -f 2 | mysql -U root -p mydb -h friendserver Enter password: (holds) $ echo P455w0rd | mysql -u root -p mydb -h…
Kokizzu
  • 9,699
93
votes
5 answers

tar exits on "Cannot stat: No such file of directory", why?

I'm trying to create tar.gz file using the following command: sudo tar -vcfz dvr_rdk_v1.tar.gz dvr_rdk/ It then start to create files (many files in folder), but then I get the following error: tar: dvr_rdk_v1.tar.gz: Cannot stat: No such file or…
ransh
  • 1,407
93
votes
10 answers

GTK - Enable/set dark theme on a per-application basis

Is there a way to set gtk-application-prefer-dark-theme for an application? This is normally set in the code by the application. Apps such as Eye of Gnome and Totem turn it on. I want to, as a user turn it on, on a per application bases. For…
93
votes
6 answers

Why does `ESC` move the cursor back in vim?

In vim, when I hit ESC to return to command mode, the cursor moves one character to the left. This is not what I would hope for, occasional I immediately hit l to move back to that spot, perhaps to delete a character. Is there a reason for this…
Eric Wilson
  • 4,722
92
votes
5 answers

i3wm : start applications on specific workspaces when i3 starts

How can I start applications on specific workspaces in i3 when it starts? Why is this not working in my config file? : workspace 1; exec firefox; workspace 2; exec chromium; workspace 1
Gradient
  • 3,659