Linux Commands: Case-Sensitive. The Terminal Can Be Used To Accomplish All Administrative Tasks. This Includes Package
Linux Commands: Case-Sensitive. The Terminal Can Be Used To Accomplish All Administrative Tasks. This Includes Package
Linux Commands: Case-Sensitive. The Terminal Can Be Used To Accomplish All Administrative Tasks. This Includes Package
Linux is a Unix-Like operating system. All the Linux/Unix commands are run in the terminal provided by the
Linux system. This terminal is just like command prompt of Windows OS. Linux/Unix commands are
case-sensitive. The terminal can be used to accomplish all Administrative tasks. This includes package
installation, file manipulation, and user management. Linux terminal is user-interactive. The terminal outputs
the results of commands which are specified by the user itself. Execution of typed command is done only after
you press the Enter key.
Commands Description
Used to check whether the calling program has access to a specified file. It
access
can be used to check whether a file exists or not
Used to turn on or turn off the process for accounting or change info process
accton
accounting file
aclocal Used to automatically generate aclocal.m4 files from configure.in file
acpi Used to display the battery status and other ACPI information
Tests whether ACPI (Advanced Configuration and Power Interface) subsystem is
acpi_available
available or not
It provides intelligent power management on a system and is used to notify the
acpid
user-space programs about the ACPI events
addr2line Used to convert addresses into file names and line numbers
It is a Linux version of getty, which is a Unix program running on a host computer
agetty
that manages physical or virtual terminals to allow multi-user access
Instructs the shell to replace one string with another string while executing
alias
the commands
It is a command-line mixer for ALSA(Advanced Linux Sound Architecture)
amixer
sound-card driver
Used to play standard MIDI(Musical Instrument Digital Interface) files, by
aplaymidi sending the content of a MIDI file to an ALSA(Advanced Linux Sound Architecture)
MIDI port
It helps the user when they don’t remember the exact command but knows a few
apropos
keywords related to the command that define its uses or functionality
Provides a high-level CLI (Command Line Interface) for the package management
system and is intended as an interface for the end user which enables some options
apt
better suited for interactive usage by default compared to more specialized APT
tools like apt-cache and apt-get
apt-get It is a command-line tool which helps in handling packages in Linux
Opens up a highly built-in interface to interact with the package manager of
aptitude
the machine
ar Used to create, modify and extract the files from the archives
arch Used to print the computer architecture
It manipulates the System’s ARP cache. It also allows a complete dump of the
arp
ARP cache
aspell Used as a spell checker in Linux
atd It is a job scheduler daemon that runs jobs scheduled for later execution
Used to remove the specified jobs. To remove a job, its job number is passed
atrm
in the command
atq It displays the list of pending jobs which are scheduled by the user
autoconf Used in Linux to generate configuration scripts
Used to create a template file of C “#define” or any other template header
autoheader
for configure to use
Used for automatically generating Makefile.in files compliant with the set GNU
automake
Coding Standards
autoreconf Used to create automatically buildable source code for Unix-like systems
autoupdate Used to update configure.in file in our Linux system to a newer Autoconf.
awk It is a scripting language used for manipulating data and generating reports
banner Used to print the ASCII character string in large letter to standrad output
It strips directory information and suffixes from file names i.e. it prints the file
basename
name NAME with any leading directory components removed
Used to read commands from standard input or a specified file and execute them when
batch
system load levels permit i.e. when the load average drops below 1.5
bc Used for command line calculator
bg Used to place foreground jobs in background
A mail notification system for unix that notifies the user at the command line when
biff
new mail arrives and tells from whom it is
bind Used to set Readline key bindings and variables
bison It is basically a parser generator similar to yacc
break Used to terminate the execution of for loop, while loop and until loop
builtin Used to run a shell builtin, passing it arguments(args), and also to get the exit status
bzcmp Used to invoke the cmp utility on bzip2 compressed files
bzdiff Used to compare the bzip2 compressed files
bzgrep Used to search for a pattern or an expression but inside a bzip2-compressed file
bzip2 Used to compress and decompress the files
It does not have to read the entire input file before starting, so with a large file,
bzless
it starts up faster
Used as a filter for CRT viewing of bzip2 compressed files, which are saved with .bz2
bzmore
suffix
Used to see the calendar of a specific month or a whole year. By default, it shows
cal
current month’s calendar as output
case It is the best alternative when we had to use multiple if/elif on a single variable
Reads data from file and gives their content as output. It helps us to create, view,
cat
concatenate files
cc It is used to compile the C language codes and create executables
ccrypt It is a command line tool for encryption and decryption of data
cd Known as change directory command. It is used to change current working directory
It displays or manipulates the disk partition table by providing a text-based
cfdisk
“graphical” interface
chage Used to view and change the user password expiry information
It is a file system command which is used for changing the attributes of a file in
chattr
a directory
It allows you to change a user’s name and other details easily. chfn stands for Change
chfn
finger
chgrp Used to change the group ownership of a file or directory
chkconfig Used to list all available services and view or update their run level settings
chmod Used to change the access mode of a file
chown Used to change the file Owner or group
chpasswd Used to change password for multiple users at a time
chroot Used to change the root directory
chrt Used for manipulating the real-time attributes of a process
chsh Used to change the user’s login shell(currently login shell)
chvt Used to switch between the different TTY (TeleTYpewriter) terminals available
Used to display a CRC(Cyclic Redundancy Check) value, the byte size of the file and
cksum
the name of the file to standard output
clear Used to clear the terminal screen
Used to compare the two files byte by byte and helps you to find out whether the two
cmp
files are identical or not
It is used to filter out reverse line feeds. The col utility simply reads from the
col
standard input and writes to standard output
Used to format the text processor output so that it can be viewed on Cathode Ray Tube
colcrt
displays
colrm Removes selected columns from a file
column Used to display the contents of a file in columns
Compares two sorted files line by line and write to standard output; the lines that
comm
are common and the lines that are unique
Used to reduce the file size. After compression, the file will be available with an
compress
added .Z extension
continue Used to skip the current iteration in for, while and until loop
cp Used to copy files or group of files or directory
cpio stands for “copy in, copy out“. It is used for processing the archive files
cpio
like *.cpio or *.tar. This command can copy files to and from archives
cpp It is automatically used by C compiler to transform your program before compilation
A software utility, offered by Linux-like operating system which automates the
cron
scheduled task at a predetermined time
A list of commands that you want to run on a regular schedule, and also the name of
crontab
the command used to manage that list
csplit Used to split any file into many parts as required by the user
It allows quick access across the files (For example quickly seeing definition of
ctags
a function)
It is a type of scheduler for CUPS (Common Unit Printing System). It implements the
cupsd
printing system on the basis of the Internet Printing Protocol
curl A tool to transfer data to or from a server, using any of the supported protocols
cut For cutting out the sections from each line of files and writing the result to standard
output
Used to store the history of a file. Whenever a file gets corrupted or anything goes
cvs
wrong “cvs” help us to go back to the previous version and restore our file
Used to display the system date and time. It is also used to set date and time of
date
the system
Used to evaluate arithmetic expressions. It evaluates expressions in the form of
dc
a postfix expression
It is a command-line utility for Unix and Unix-like operating systems whose primary
dd
purpose is to convert and copy files
Used to declare shell variables and functions, set their attributes and display their
declare
values
Used to generate a list of dependency description of kernel modules and its
depmod
associated map files
Used to display information related to file systems about total space and available
df
space
diff Used to display the differences in the files by comparing the files line by line
diff3 Used to compare the three files line by line
dir Used to list the contents of a directory
Used to remove the trailing forward slahes “/” from the NAME and prints the
dirname
remaining portion
dirs Used to display the list of currently remembered directories
disable Used to stop the printers or classes
dmesg Used to examine the kernel ring buffer and print the message buffer of kernel
Used when the user wants to retrieve system’s hardware related information such
dmidecode
as Processor, RAM(DIMMs), BIOS detail, etc. of Linux system in a readable format
domainname Used to return the Network Information System (NIS) domain name of the host
dos2unix Converts a DOS text file to UNIX format
dosfsck Diagnoses MS-DOS file system for problems and attempts to repair them
Used to track the files and directories which are consuming excessive amount of space
du
on hard disk drive
dump Used to backup the filesystem to some storage device
Used to print the super block and blocks group information for the filesystem present
dumpe2fs
on device
dumpkeys Used for the dump keyboard translation tables