Help and Abbreviations | |
---|---|
Command Name | Action |
apropos | Finds online manual pages for a specified keyword |
info | Displays online help information about a specified command |
man | Displays online help information |
whatis | Similar to apropos but searches for complete words only |
alias | Defines an abbreviation for a long command |
type | Shows the type and location of a command |
unalias | Deletes an abbreviation defined using alias |
Managing Files and Directories | |
---|---|
Command Name | Action |
cd | Changes the current directory |
chmod | Changes file permissions |
chown | Changes file owner and group |
cp | Copies files |
ln | Creates symbolic links to files and directories |
ls | Displays the contents of a directory |
mkdir | Creates a directory |
mv | Renames a file as well as moves a file from one directory to another |
rm | Deletes files |
rmdir | Deletes directories |
pwd | Displays the current directory |
touch | Updates a file's time stamp |
Find Files | |
---|---|
Command Name | Action |
find | Finds files based on specified criteria,such as name and size |
locate | Finds files using a periodically updated filename database.(The database is created by the updatedb program.) |
whereis | Finds files based in the typical directories where executable (also known as binary)files are located |
which | Finds files in the directories listed in the PATH enviroment variable |
Processing Files | |
---|---|
Command Name | Action |
cat | Displays a file on standard output (can be used to concatenate several files into one big file) |
cut | Extracts specified sections from each line of text in a file |
dd | Copies blocks of data from one file to another(used to copy data from devices) |
diff | Compares two text files and finds any differences |
expand | Converts all tabs into spaces |
file | Displays the type of data in a file |
fold | Wraps each line of text to fit a specified width |
grep | Searches for regular expressions within a text file |
less | Displays a text file one page at a time(can go backward,also) |
lpr | Prints files |
more | Displays a text file,one page at a time(goes forward only) |
nl | Numbers all nonblank lines in a text file and prints the lines to standard output |
paste | Concatenates corresponding lines from several files |
patch | Updates a text file using the differences between the original and revised opy of the file |
sed | Copies a file to standard output while applying specified editing commands |
sort | Sorts lines in a text file |
split | Breaks up a file into several smaller files with specified size |
tac | Reverses a file(last line first and so on) |
tail | Displays the last few lines of a file |
tr | Substitutes one group of characters for another throughout a file |
uniq | Eliminates duplicate lines from a text file |
wc | Counts the number of lines,words,and characters for another throughout a file |
zcat | Displays a compressed file (after decompressing) |
zless | Displays a compressed file one page at a time(can go backward also) |
zmore | Displays a compressed file one page at a time |
Archiving and Compressing Files | |
---|---|
Command Name | Action |
compress | Compresses files |
cpio | Copies files to and from an archive |
gunzip | Decompresses files compressed with GNU Zip(gzip) |
gzip | Compresses files using GNU Zip |
tar | Creates an archive of files in one or more directories(originally meant for archiving on tape |
uncompress | Decompresses files compressed with compress |
Managing System | |
---|---|
Command Name | Action |
bg | Runs an interrupted process in the background |
fg | Runs a process in the foreground |
free | Displays the amount of free and used memory in the system |
halt | Shuts down Linux and halts the computer |
kill | Sends a signal to a proces(usually used to terminate a process) |
ldd | Displays the shared libraries needed to run a program |
nice | Runs a process with lower priority(referred to as nice mode) |
ps | Displays a list of currently running processes |
printenv | Displays the current enviroment variables |
pstree | Similar to ps bu shows parent-child relationships clearly |
reboot | Stops Linux and then restart the computer |
shutdown | Shuts down Linux |
top | Displays a list of most processor-and memory-intensive processes |
uname | Displays information about the system and the Linux kernel |
Managing Users | |
---|---|
Command Name | Action |
chsh | Changes the shell(command interpreter) |
groups | Prints the list of groups that include a specified user |
id | Displays the user and group ID for a specified user name |
passwd | Changes the password |
su | Starts a new shell as another user or root(when invoked without any argument) |
Managing the File System | |
---|---|
Command Name | Action |
df | Summarizes free and available space in all mounted |
du | Displays disk usage information |
fdformat | Formats a diskette |
fdisk | Partitions a hard disk |
fsck | Checks and repairs a file system |
mkfs | Creates a new file system |
mknod | Creates a device file |
mkswap | Creates a swap space for Linux in a file or a hard drive partition |
mount | Mounts a device(for example,the CD-ROM)on a directory in the file system |
swapoff | Deactivates a swap space |
swapon | Activates a swap space |
sync | Writes buffered(saved in memory) date to files |
tty | Displays the device name for the current terminal |
unmount | Unmounts a device from the file system |
Dates and Times | |
---|---|
Command Name | Action |
cal | Displays a calendar for a specified month or year |
date | Shows the current date and time or sets a new date and time |
No comments:
Post a Comment