Unix Tutorial
Getting Started with Unix
Getting started in unix is easy. Here are some simple steps to working on a UNIX box.
Logging in
Logging in: To log in you have 2 prompts. Both fields are case sensitive. The first prompt will be your
username; the second prompt will be your password. If you remember that this is case sensitive, you are easily on a
unix system.
Directory Commands:
Tell you what directory you are in: pwd
To find out what directory you are in, use pwd, which stands for print working directory.
- Changing directories: cd directory
To change your directory simply use cd directory-name. In UNIX, if you are using a full path use the forward
slash. For example, a user named "joe" may have his home directory in /home/joe. Joe can get to his default
home directory by simply typing cd. If he wants to be in /tmp, he would type cd /tmp
- Making directories: mkdir directory
Use the mkdir command to make one or more directories.
- Removing directories: rmdir directory
Use the rmdir command to remove one or more directories.
File Commands:
Getting Help:
- Getting help: man -k topic
The man command helps you get manual information. Run man -k topic to find the man page you need. Then run man
commandname to get help with the actual command.
Quick Reference
|
Which directory am I in?
|
pwd
|
Change Directories
|
cd desired-directory
|
Make Directories
|
mkdir desired-directory
|
Remove Directories
|
rm desired-directory
|
List Files
|
ls
|
Copy Files
|
cp file1 file2
|
Move Files
|
mv file1 file2
|
Remove Files
|
rm file
|
Help
|
man
|
|