Unix Command Tutorial

This post is intended to teach some of the most basic UNIX commands for a user who is new to the command line interface.

1. ls – This command lists all of the files within a directory

ls2

2. cd- This command changes the directory you are in to the directory of your choice. In this example we cd to Documents and then ls to demonstrate the change

cd3

 

If we wish to move backwards or “up” a directory we use “cd ..”

cd4

3. cat- This command displays what is inside of a file

cat2

4. ssh- This command is what students would use to access their file shares via terminal

ssh BRONCOID@login.cs.wmich.edu (Presuming you have set up your samba share here) You then type in your password and are in your home directory.

5. rm- This command allows the user to delete files from their directory

rm2

6. mkdir- This command allows the user to create a directory

mkdir2

To remove a directory you must use the rmdir command. The directory must be empty to use this command, so make sure to use rm to remove all the files from the directory beforehand.

rmdir2

 

7. mv- This command allows the user to take a file and move it into another directory.

mv

If you have any questions about a particular command, you can access its “man” or manual page like so:

man2

You can find other useful, more advanced commands here

One thought on “Unix Command Tutorial

  1. I am impressed, I must say. Very seldom do I encounter a blog thats both educational and entertaining, and let me tell you, you have hit the nail on the head. Your blog is outstanding; the issue is something that not many people are speaking intelligently about. Im really happy that I stumbled across this in my search for something relating to it.

Comments are closed.