10 January 2009

UNIX Commands

passwd
Prompt to change password Enter old password and new password twice

man command-name
On-line help facility available with UNIX is electronic reference manuals, known as
the man pages

ls
List the files in the current directory

ls-a
List all the files in the current directory, even the hidden ones

ls -F
As above, but indicate sub-directories by appending a backslash (/) to their name


mkdir
Make a directory

rmdir
Remove a directory

cp FILE1 FILE2

Make a copy of FILE1 and call the copy FILE2

mv FILE1 FILE2
Rename a file from old name FILE1 to new name FILE2

mv FILE1 DIR/
Move a file from it's present directory into another directory (DIR)

rm FILE
Remove or delete FILE

more FILE
Display the contents of FILE, pausing after each screenful


--More--(18%)
Whenever you see something like the above at the bottom of your screen, you can:

press the space bar
To see the next screenful of text

type b
To go back one screenful

type q
To quit the listing of text and return to the Unix shell


exit
Ends your work on the Unix system

Ctrl-l or clear
Clears the screen

Ctrl-c
Stops the program currently running

Ctrl-p
Retrieves the last shell command you typed

Ctrl-z
Pauses the currently running program

find . -name FILE -print
Finds all paths containing FILE in the current directory or below it

fgrep -i PATTERN FILE
Searches for and displays all lines in file that contain PATTERN (case insensitive)

finger USER@ADDRESS
Displays login/e-mail status of a user at another host

jobs
Lists background jobs started during your current login session

ps
Lists all jobs (background and foreground) started during your login session

du
Displays disk usage in kbytes by directory, starting in the current directory and working down

du -s
Displays total disk usage

fs listquota
Displays your current disk space usage and quota in kbytes

telnet ADDRESS
Logs on to another machine on the Internet on which you have an account

ftp ADDRESS
Begins a file transfer session with another computer on the Internet

wc FILE
Counts the lines, words, and characters in FILE

spell FILE
Reports possible misspelled words in FILE

webster WORD more
Looks up a word via the online version of Webster's dictionary

quota -v
Displaye current disk usage for this account

No comments: