UNIX as an operating system
Logging in/out
Changing Password
Creating/Removing Directories
Creating/Removing Files
Setting Permissions
Basic Commands
Other Resources
Unix is an operating system.
What is an operating system?
Find this and other technology related definitions from whatis.com.
To ensure security and organization on a system with many users,
UNIX machines employ a system of user accounts. The user accounting
features of UNIX provide a basis for analysis and control of system
resources, preventing any user from taking up more than his or her
share, and preventing unauthorized people from accessing the system.
Every user of a UNIX system must get permission by some access control
mechanism.
Once you have completed your Unix session, simply type exit at the prompt and this will close your session.
The first thing you should do when you log in the first time is change your password. You can do this by typing in:
You will then be prompted to enter your current password. This is a security measure built into Unix. Once you have correctly entered your existing password you will be prompted to enter a new password and to re-enter it to make sure there were no typing errors.
Some useful guidelines when selecting a password for Unix:
Creating/Removing Directories
top
Creating Directories
When creating files and directories on UNIX, it is safest to use only the characters A-Z, a-z, 0-9, and the period, dash, and underscore characters. /font>
On computers that can provide parallel processing, an operating system can manage how to divide the program so that it runs on more than one processor at a time.
Once you have accessed a Unix system you will need to log-in. For this you need your username and password which have been supplied by the system administrator. These are case sensitive so be sure you do not have caps lock on.
Creates a directory as a sub-directory to the one you are currently in. By specifying a full path you may create a directory in a different directory. You must have write permissions in the parent directory to create a directory.
Removing Directories
Creating Files
The touch command creates an empty file within the directory you are working. If you touch an existing file, it changes the last modification date to now.
Deletes the named file(s). Options: -f force, delete files without prompting -i interactive -prompts whether you want to delete the file -R recursively delete all files in directories
There are a number of configurations you can set up when setting the permissions for a file or directory.
Number Perms 0 --- no permissions 1 --x executable only 2 -w- writable only 3 -wx writable and executable 4 r--- readable only 5 r-x readable and executable 6 rw- readable and writable 7 rwx readable, writable, and executableBasic Commands top
pwd(print working directory) displays what directory you are currently working in
ls-list
ls -a
- shows you all the files in your directory, including hidden ones.
ls -l
- shows you the files in your directory in long format. Giving you the ability to see file permissions, owner of file, creation date, and filename.
ls -al
- combination of the two above.
Following are a number of options to use with the ls command.
cd: change directory. This always takes you to your home directory.
cd directoryname: takes you to directory directoryname
cd~: takes you to your home directory
cd . : keeps you in the current directory
cd ..: moves you up a directory in the hierarchy
man: The on-line manual with a complete list of options available for each command.
mv: Moves a file and can also be used to rename a file by using the same path.
ps: Shows all the processes you are running
script: Records all interactions in a window and saves in a file.
To stop recording, use Ctrl-D.
lp: Print a file on the printer. Make sure you know what printer you are printing to and where that printer is.
top
For additional Unix support and documentation, I have provided the following links:
A Basic Unix Tutorial from Idaho State University
Basic Unix
UNIXhelp for Users