- list of directory
[code language=”java”]
ls
ls -a
[/code]
- change a directory
[code language=”java”]
cd .
cd ..
cd ~
cd <path>
[/code] - current path
[code language=”java”]
pwd
[/code] - create a dir
[code language=”java”]
mkdir
[/code] - remove dir/file
[code language=”java”]
rm [-r -f]
[/code] - like admin
[code language=”java”]
sudo <…>
[/code] - move/rename
[code language=”java”]
mv <source> <dest>
[/code] - content of file
[code language=”java”]
cat <filename>
[/code] - manual
[code language=”java”]
man <command>
[/code] - copy
[code language=”java”]
cp <source> <dest>
[/code] - download
[code language=”java”]
wget <url>
[/code] - shutdown
[code language=”java”]
shutdown
[/code] - restart
[code language=”java”]
restart
[/code] - apt-get
[code language=”java”]
sudo apt-get [install] [remove] [update] [upgrade]
[/code]