DPKGinstall - dpkg -i package.debremove/uninstall - dpkg -r package
List files asscoiated with package -dpkg -L package
Version - dpkg -l package
Unpack A deb - dpkg -unpack package.deb
APT
install - apt-get install <package>
search - apt-cache search <package>
remove - apt-get remove <package>
(When using apt-get to download off the Internet, the .deb files are placed in /var/cache/apt/archives)
Arrow Up: scrolls and edits the command history, press enter to activate.
Shift+pgup: scrolls terminal output up
Shift+pgdown: scrolls terminal output down
CTRL-ALT+DEL reboots the system
Shutdown -h now turns the system off
CTRL C kills the current process
CTRL S Stops the tranfer to the terminal
CTRL Q Resumes the transfer to the terminal
CTRL Z Puts the current process in the background.
Read more: http://javarevisited.blogspot.com/2010/10/basic-networking-commands-in-linuxunix.html#ixzz2QuBL7KL7
Poster: http://www.digilife.be/quickreferences/QRC/The%20One%20Page%20Linux%20Manual.pdf
http://www.tuxfiles.org/linuxhelp/linuxcommands.html
Moving around in the file system | |
Command | Action |
pwd | "Print working directory" - show what dir you're in. |
ls | List the contents of a dir. |
ls -l | List the contents of a dir and show additional info of the files. |
ls -a | List all files, including hidden files. |
cd | Change directory. |
cd .. | Go to the parent directory. |
Examining files | |
Command | Action |
file | Determine the type of a file. |
cat | Concatenate a file. |
less | View text files and paginate them if needed. |
Manipulating files and directories | |
Command | Action |
cp | Copy a file. |
cp -i | Copy a file and ask before overwriting. |
cp -r | Copy a directory with its contents. |
mv | Move or rename a file. |
mv -i | Move or rename a file and ask before overwriting. |
rm | Remove a file. |
rm -r | Remove a directory with its contents. |
rm -i | Ask before removing a file. Good to use with the -r option. |
mkdir | Make a directory. |
rmdir | Remove an empty directory. |