Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Common LINUX Command

Common LINUX Command

Ratings: (0)|Views: 19|Likes:
Published by api-3736383

More info:

Published by: api-3736383 on Oct 15, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less





Common LINUX Command

The following is a list of commonly used LINUX/UNIX commands which may be of value during your Telnet sessions.
Remember that LINUX/UNIX is case sensitive. Options or flags which can be used with a command are placed in [ ]. The [ ]
are not part of the command and should not be included in the command that you type.

allows you to login for a Telnet session
changes your password
logs you out of a Telnet session

change directory; cd .. moves you backwards to the next higher subdirectory level; cd / moves you to the highest directory level

chmod permissions filenames

changes the permissions for a file; permissions should
include a letter designating who gets permissions (u for the
user,g for the group,o for others, ora for all) followed by a

+or - (to give or take away the permission) followed by the

kind of permission (r for read access,w for write access,x for execute if the file is a program or script); the complete command that you type should look like:

chmod g-wfi lename
chown user:group filenames
changes ownership of a file
clears the screen
cp oldfiles newfiles
copies a file; this leaves the old file intact and makes a new
copy with a new filename
tells you the current date and time
displays how much space on the disks (harddrive partitions)
is free
du [-a] [-s] directories

tells you how much disk space your files occupy; the-a
option displays the space used by each file, not just each
directory; the-s option displays the total space used for each
directory but not subdirectory


provides information concerning a user; finger without the
username@servername will provide information concerning
who is using the server at that time

provides online help; several topics have been included in the
help system available on the servers
ls [-l] [-a] [-p] [-r] [-t] [-x]

lists the files in a directory;-l displays detailed informtion
about each file and directory, including persmissions,
owners, size and time/date when the file was last modified;

-a option displays all the files and subdirectories including

hidden files (with names that begin with a dot);-p displays a
slash at the end of each directory name to distinquish them
from filenames;-r displays files in reverse order;-t displays
files in order of modification time;-x displays the filenames
in columns across the screen.

lynx servername or URL
Lynx is a text-based, non-graphical web brower for use in
Telnet session
man [-k keywords] topic

displays the reference manual page about a LINUX
command; the -k k eywo rd s option allows you to see all man
pages that contain that keyword;topi c is the command or
topic which you want information about


lets you control whether other people can use the talk
command to interrupt you with on-screen messaging; mesg n
will block the interruptions; mesg y will allow interruptions

makes a new subdirectory with the name specified by
mv [-i] oldname newname

renames a file or moves it from one filename or directory to
another; the-i option tells mv to prompt you before it
replaces an existing filename

nslookup IP address or server alias

provides conversion of an IP address to an alias of a
computer if it is registered in DNS (Domain Name Service)
or will provide the IP address for an alias

changes your password

a program which allows you to read and send mail;
information concerning the use of pine can be found
elsewhere in thedocu menta tion or by reading the online
manual pages for pine ( man pine )

ping IP address or server alias

sends a ping packet to another server; this provides
information concerning the time it takes for information to
make the round trip to the other computer; it will also tell
you whether the other server is on-line at that time

displays information about your processes/jobs/programs
which are running on the server
rm [-i] [-r] filenames

removes or deletes files; the-i option asks you to confirm
that you want to delete each file; the-r option is dangerous
because it allow you to delete an entire directory andall of
the files it contains

rmdird irecto r y
removes a directory; you can use the-i and-r options which
are described in therm command
tail [-r] [-lines] filename
displays the last few lines of a file; -r displays the lines in

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->