Basic Command
Command |
Summary Use |
Use cd to change directories |
Type cd followed by the name of a directory to access that
directory. |
Use clear to clear the command prompt |
Type clear to clean up your command prompt window. |
Use date to set your server's date and time |
Type date followed by the two digit month, the two digit date, the
two digit time, and two digit minutes. The syntax is easy enough and
resembles this: MMDDhhmm |
Use df to check disk space |
Typing df provides a very quick check of your file system disk
space. |
Use finger to see who's on the system |
Typing finger allows you to see who else is on the system or get
detailed information about a person who has access to the system. |
Use logout to quit using the system |
Yep, you guessed it, typing logout
will log your account out of the system. |
Use ls to list files and directories |
Type ls to see a list of the files and directories located in the
current directory. If you’re in the directory named games and you type
ls, a list
will appear that contains files in the games directory and sub-directories in
the games directory. Examples:
* In Bash (Linux shell) often the
abbreviated command L is available. To get a verbose listing of files and
directories you could therefore simply type: l |
Use man to pull up information about a Linux command |
Type man followed by a command to get detailed information about
how to use the command. Ex: |
Use more to read the contents of a file |
Type more followed by the name of a text file to read the file’s
contents. Why do we exmphasize using this on a "text" file? Because
most other types of files will look like garbage! Ex: |
Use nano to start a text editor |
Typing nano will start a basic text editor on most Linux systems. |
Use passwd to change your current password |
Type passwd and press enter. You'll see the message Changing
password for yourname. |
Use pwd to list the name of your current directory |
Type pwd and hit enter. You'll see the full name of
the directory you are currently in. This is your directory path and is very
handy. This is especially handy when you forget which directory you’ve
changed to and are trying to run other commands. |