Tags » Bash

Fixing virtual disk problems

What if your grub loader on a virtual machine is broken – or you need to repair or resize a filesystem in one of your virtual machines? 186 more words


Getopt or Getops, that is the question

Bonjour à tous,

Qu’est-ce que getopts ?
Est-ce mieux que getopt ?

Lors de ma lecture de l’«Advanced Bash Scripting Guide», je suis tombé sur la fonction «builtin» nommée «getopts». 1,165 more words


Tuning TCP Application Performance

There are some good articles online about overriding the default Linux TCP receive and send window buffer sizes; but I want to extend this topic into more in depth analysis. 634 more words

Linux Ubuntu

An A-Z Index of the Bash command line 

 alias    Create an alias •
  apropos  Search Help manual pages (man -k)
  apt-get  Search for and install software packages (Debian/Ubuntu)
  aptitude Search for and install software packages (Debian/Ubuntu)
  … 1,503 more words
System Administration

Refer to a command "n" lines back

Say you issued:

$ mkdir 1
$ echo bum-bum
$ ls -al

To issue “echo bum-bum” again, just type:


Refer to the most recent command starting with a known prefix

If you also forget the full names of long bash commands, this will definitely help. Consider this case:

$ some-long-command-string
$ ls
$ cd

Now, if you need the “long-command-string” again and you know it starts with “some”: