Quote:
Originally Posted by Hosiah
Top 10 tips for the Linux command line:
(email this to ten friends!)
If you don't know about "foo", type:
10 "info foo"
or
9 "man foo"
if you can't find "foo", type:
8 "locate -i foo"
or
7 "whereis foo"
if you want to view "foo":
6 "less foo"
or
5 "emacs foo"
4 just about any program, when you type it's name and "-h" or "--help" will print out a usage message.
3 to navigate "down" into a directory named foo, type "cd ./foo"
2 to navigate "up" into any higher directory, type "cd ../"
1 to see what's in the directory that you're in, type "ls"
and bonus rule 0: read everything readable in your system. You practically have a library at your fingertips!
|
I tried the commands out. I left out one of the commands because it's output was huge! Anyway, check this out:
elothas@elothas-Inspiron-3593:/$ info foo
info: No menu item 'foo' in node '(dir)Top'
elothas@elothas-Inspiron-3593:/$ man foo
No manual entry for foo
elothas@elothas-Inspiron-3593:/$ emacs foo
Command 'emacs' not found, but can be installed with:
sudo apt install emacs25
sudo apt install emacs25-nox
sudo apt install e3
sudo apt install emacs25-lucid
sudo apt install jove
elothas@elothas-Inspiron-3593:/$ whereis foo
foo:
elothas@elothas-Inspiron-3593:/$ foo -h
Command 'foo' not found, did you mean:
command 'goo' from deb goo
command 'fop' from deb fop
command 'fox' from deb objcryst-fox
command 'fog' from deb ruby-fog
command 'fio' from deb fio
command 'woo' from deb python-woo
command 'fgo' from deb fgo
Try: sudo apt install <deb name>
elothas@elothas-Inspiron-3593:/$ cd ./foo
bash: cd: ./foo: No such file or directory
elothas@elothas-Inspiron-3593:/$
Regards,
Nick.