0% found this document useful (0 votes)
4 views5 pages

Linux Commands: Command Description

linux 1111

Uploaded by

joshi.isha.ec
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Linux Commands: Command Description

linux 1111

Uploaded by

joshi.isha.ec
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Video

Audio
Lighting

Photography

Graphics

Computers

Internet

Forum
Glossary

Equipment

Downloads

Misc

Links

Shop

Home : Linux : Commands : Linux Commands

Search

Linux Commands
The following table is a list of linux commands found on a Redhat 9.0 server.
To see a list of bash shell commands, go to the shell commands page.
For those of you who are unsure how to use linux commands, see our Linux Commands Tutorial.
Click on the command name or the
Click on the

to see a description of the command.

to see the man page for that command.

Command

Description

adduser
arch
awk
bc
cal
cat
chdir
chgrp
chkconfig
chmod
chown
chroot
cksum
clear

Add a new user


Print machine architecture
Find and Replace text within file(s)
An arbitrary precision calculator language
Display a calendar
Concatenate files and print on the standard output
Change working directory
Change the group ownership of files
Tool for maintaining the /etc/rc[0-6].d directory hierarchy
Change the access permissions of files and directories
Change the user and group ownership of files
Change root directory
Print CRC checksum and byte counts
Clear terminal screen

cmp
comm
cp
cron
crontab
csplit
cut
date
dc
dd
df
diff
diff3
dir

Compare two files


Compare two sorted files line by line
Copy one or more files to another location
Daemon to execute scheduled commands
Schedule a command to run at a later time
Split a file into context-determined pieces
Divide a file into several parts
Display or change the date & time
Desk Calculator
Data Dump - Convert and copy a file
Display free disk space
Display the differences between two files
Show differences among three files
Briefly list directory contents

dircolors
dirname
du
echo
ed
egrep
eject
env
expand
expr
factor
false
fdformat
fdisk
fgrep
find
fmt
fold
format
free
fsck
gawk
grep
groups

Colour setup for `ls'


Convert a full pathname to just a path
Estimate file space usage
Display message on screen
A line-oriented text editor (edlin)
Search file(s) for lines that match an extended expression
Eject CD-ROM
Display, set, or remove environment variables
Convert tabs to spaces
Evaluate expressions
Print prime factors
Do nothing, unsuccessfully
Low-level format a floppy disk
Partition table manipulator for Linux
Search file(s) for lines that match a fixed string
Search for files that meet a desired criteria
Reformat paragraph text
Wrap text to fit a specified width
Format disks or tapes
Display memory usage
Filesystem consistency check and repair
Find and Replace text within file(s)
Search file(s) for lines that match a given pattern
Print group names a user is in

gzip
head
hostname
id
info
install
join
kill
less
ln
locate
logname
lpc
lpr

Compress or decompress named file(s)


Output the first part of file(s)
Print or set system name
Print user and group id's
Help info
Copy files and set attributes
Join lines on a common field
Stop a process from running
Display output one screen at a time
Make links between files
Find files
Print current login name
Line printer control program
Off line print

lprm
ls
man
mkdir
mkfifo
mknod
more
mount
mv
nice
nl
nohup
passwd
paste
pathchk
pr
printcap
printenv
printf
ps
pwd
quota
quotacheck
quotactl

Remove jobs from the print queue


List information about file(s)
Help manual
Create new folder(s)
Make FIFOs (named pipes)
Make block or character special files
Display output one screen at a time
Mount a file system
Move or rename files or directories
Set the priority of a command or job
Number lines and write files
Run a command immune to hangups
Modify a user password
Merge lines of files
Check file name portability
Convert text files for printing
Printer capability database
Print environment variables
Format and print data
Process status
Print Working Directory
Display disk usage and limits
Scan a file system for disk usage
Set disk quotas

ram
rcp
rm
rmdir
rpm
rsync
screen
sdiff
sed
select
seq
shutdown
sleep
sort

ram disk device


Copy files between two machines
Remove files
Remove folder(s)
Remote Package Manager
Remote file copy (Synchronize file trees)
Terminal window manager
Merge two files interactively
Stream Editor
Accept keyboard input
Print numeric sequences
Shutdown or restart linux
Delay for a specified time
Sort text files

split
su
sum
symlink
sync
tac
tail
tar
tee
test
time
touch
top
traceroute
tr
true
tsort
tty
umount
uname
unexpand
uniq
units
unshar

Split a file into fixed-size pieces


Substitute user identity
Print a checksum for a file
Make a new name for a file
Synchronize data on disk with memory
Concatenate and write files in reverse
Output the last part of files
Tape Archiver
Redirect output to multiple files
Evaluate a conditional expression
Measure Program Resource Use
Change file timestamps
List processes running on the system
Trace Route to Host
Translate, squeeze, and/or delete characters
Do nothing, successfully
Topological sort
Print filename of terminal on stdin
Unmount a device
Print system information
Convert spaces to tabs
Uniquify files
Convert units from one scale to another
Unpack shell archive scripts

useradd
usermod
users
uuencode
uudecode
vdir
watch
wc
whereis
which
who
whoami
xargs
yes

Create new user account


Modify user account
List users currently logged in
Encode a binary file
Decode a file created by uuencode
Verbosely list directory contents (`ls -l -b')
Execute/display a program periodically
Print byte, word, and line counts
Report all known instances of a command
Locate a program file in the user's path
Print all usernames currently logged in
Print the current user id and name (`id -un')
Execute utility, passing constructed argument list(s)
Print a string until interrupted

[Link] - About Us - Contact Us


All content is Copyright Wavelength Media except where stated otherwise. Usage is subject to Terms & Conditions.

Common questions

Powered by AI

The 'chmod' command enhances system security by allowing users to change the access permissions of files and directories. It controls who can read, write, or execute a file, thereby preventing unauthorized access and modification. To implement it effectively, users should apply the principle of least privilege, granting the minimum necessary permissions to users and groups based on their roles and requirements. This mitigates security risks by limiting potential vectors for unauthorized actions .

The 'chmod' command is used to modify the access permissions of files and directories, determining which users can read, write, or execute them. In contrast, 'chown' changes the user and group ownership of files. While 'chmod' alters access levels without changing ownership, 'chown' modifies the ownership context, impacting who can modify permissions but not the permissions themselves. Together, they provide comprehensive control over access and ownership, essential for robust file security management .

The 'screen' command benefits terminal management by allowing users to execute multiple interactive shell sessions from a single window. This is particularly advantageous for remote sessions, as it enables users to detach and reattach to sessions without interrupting running tasks. This persistence allows long-running processes to continue even if the network connection is lost, thus enhancing remote administration capabilities, task management, and multitasking efficiency .

Improper usage of the 'rm' command, which is used to remove files or directories, can lead to irreversible data loss since deleted files are not sent to a recycle bin. To avoid such incidents, users should implement precautions like using the '-i' option to prompt for confirmation before deleting each file, double-checking the files specified, and performing regular backups of important data. Using 'rm' with caution is crucial to maintaining data integrity .

The 'find' command enhances file-system navigation and management by enabling users to search for files that meet specified criteria, such as name, size, type, or modification date. One of its most powerful features is the ability to combine tests and actions using options like '-exec' to perform operations on found files directly. This allows for complex workflows where files can be found and immediately processed, moved, or inspected—a function that's particularly useful in large or complex directory structures .

The 'dd' command is preferable over other file copying commands in scenarios that require low-level data transfer, such as disk cloning, creating bootable USBs, or performing raw device backups. It allows for precise data manipulation with options for block size and count. Precautions include verifying command options before execution to prevent data overwriting, ensuring the target disk is correctly specified, and aiming to back up data prior to use, as 'dd' operations can have destructive impacts if misused .

'Cron' jobs provide significant advantages over manual task execution by automating routine maintenance and management tasks. This automation ensures tasks are executed at precise times without user intervention, improving reliability and efficiency. Such tasks might include script execution, system backups, or log rotation. The use of 'cron' reduces human error, keeps systems functioning optimally, and allows administrators to pre-schedule tasks during low-traffic periods to minimize system load .

The 'awk' command in Linux is a powerful text processing tool that allows users to find and replace text within files. Its power lies in its ability to handle complex data extraction and reporting tasks with simple programming constructs. Unlike basic text editors, 'awk' can parse and analyze text as data by using concise expressions to filter and process text patterns effectively. This feature is particularly useful for processing large amounts of data systematically without manual intervention .

The 'grep' command is essential in data analysis and filtering, as it searches for lines within files that match a given pattern. This functionality is particularly useful within large datasets for extracting specific data points based on regular expressions. It allows users to perform real-time data queries efficiently, isolating relevant information without the need for loading entire files into memory or manual inspection. 'grep' thus enhances data analysis capabilities through its speed and flexibility in pattern matching .

The 'tar' command facilitates the management of file archives by allowing users to group multiple files into a single archive file for easier storage and distribution. It supports both creation and extraction of archives, as well as compression by integrating with utilities like 'gzip.' The benefits in system administration include reducing the number of files to handle, simplifying data backup processes, and maintaining the integrity of collections of related files. This command is especially useful for archiving configurations or projects .

You might also like