Visit our online store at CafePress for items with the PING 127.0.0.1 Computer Services logo!
Basic Linux Commands
NOTE: the ":" colon is not part of the commands!
- ls : lists files in a directory
- ls -l : lists files in the long form, which includes size, date edited and permissions
- pwd : print working directory, or the directory you are currently in
- cd : change directory
- cd .. : move up one directory in the tree
- rm : remove a file
- cp : copy a file
- mv : move a file or rename a file
- vi or vim : open the vi/vim editor, a simple text editor
- emacs : open the emacs editor, a powerful text editor
- pico : open the pico editor, a more user-friendly editor
- top : lists the running processes and RAM being used; can be used to kill processes
- | : a pipe; used to send output from a command (usually ls) into the more command (see below)
- more : usually used with 'ls' and '|'; stops the output at one page. The user then can hit the spacebar to move the output another page. Ex: ls | more
- ping : used to test network connections between computers
- tar -xvzf : used to unpack and decompress .tgz files; the options stand for the following: x: extract, v: verbose, z: unzip, and f: file
- uname: prints information about the computer and operating system
- uname -a : prints all information available
- man : the Linux manual pages or help pages. To use, type 'man ls' to get the manual page for the 'ls' command
- ssh : open a secure shell connection
- su : switch to superuser or root user
- chmod : change mode or change permissions for a file; Ex: chmod 755 test.html
- rmdir : remove a directory; directory must be empty
- passwd : change your password
- mkdir : make a directory
- ftp : use ftp protocol to login, upload and download files
- free: shows the amount of RAM being used
- df : disk free; shows the amount of hard drive space that is free
- du : disk used; amount of hard drive space being used
- locate : helps user to find a file or program
- whereis : helps user to find a file or program
- date : prints current date and time
- clear : clears the terminal; helps when there is a lot of previous commands on it
- bash : the default shell in Linux; stands for Bourne Again Shell
- banner : prints characters as a poster
- apt-get : used on Debian-based systems, like Debain, Ubuntu and Mepis, to download, install and configure programs and security updates
- ifconfig : displays the configuration of the network interface