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
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
If we wish to move backwards or “up” a directory we use “cd ..”
3. cat- This command displays what is inside of a file
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
6. mkdir- This command allows the user to create a directory
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.
7. mv- This command allows the user to take a file and move it into another directory.
If you have any questions about a particular command, you can access its “man” or manual page like so:
You can find other useful, more advanced commands here