Professional Documents
Culture Documents
1 of 4
gimp: error while loading shared libraries: libgegl0.0.so.0: cannot open shared object file: No such file
or directory
http://alexsleat.co.uk/2012/04/14/10-command-line-trick...
ls
cd dir
cat file
!-3
How about if you want to reuse the arguments from the last command but not the command itself, well it
can do that too:
alex:~$ ls /home/alex/Desktop
alex:~$ cd !*
cd /home/alex/Desktop
3. Reset:
Chances are, youll come across a situation where youve seemingly borked a terminal. Maybe you used
cat on the wrong file or a program tried to export some strange characters which changed the settings. The
following command should get you back to a fresh terminal quickly and you can often run it even when you
2 of 4
http://alexsleat.co.uk/2012/04/14/10-command-line-trick...
dont think you can. If the screen is really borked, try hitting enter before hand, typing reset and hitting enter
again.
alex:~$ reset
6. htop:
Similar to top (which allows you to view tasks in real-time with other useful info such as memory and CPU
usage) but its displayed in a much easier to understand and interactive. It allows you to kill tasks without
entering its PID, search, filter, sort and a bunch of other features.
alex:~$ htop
3 of 4
http://alexsleat.co.uk/2012/04/14/10-command-line-trick...
Using this will allow you to start typing and itll find the last command that contained the string youre typing,
hitting enter will execute that command. For example:
alex:~$ cd /home/alex/this/is/a/dir
ctrl+r & typing "a/dir"
(reverse-i-search)`: cd /home/alex/this/is/a/dir
Related posts:
1.
2.
3.
4.
5.
April 14th, 2012 | Tags: bang bang, bash, command line, commands, linux, top 10, tricks |
Category: Blog, Command Line, Featured, Linux
4 of 4
http://alexsleat.co.uk/2012/04/14/10-command-line-trick...
nodmonkey
October 26, 2012 at 8:40 am
Great summary of useful tips! I love the !* shortcut; never knew that one.
You may want to look at whatever is generating your HTML source. The commands you have that include
ampersands (&) are showing up as & on the page because they are being being doubly-escaped to be &
in the HTML source.
nodmonkey
October 26, 2012 at 8:42 am
Bah! The some of the & characters in my last comment have been unescaped themselves and
made it all wrong I hope you get the idea though.