Nothing Special   »   [go: up one dir, main page]

Linux Commands That Sys Admins Should Know: Command Description

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Advanced Operating Systems - 5201

kumar.aditya@humber.ca

Linux Commands that Sys Admins should know

Command Description

Show you all of the last commands that have been recently executed.
history It will simply print out the bash history of the current user to the screen.
Commands are numbered, with older commands at the top and newer commands at the bottom.

 
 
whoami To Determine the Current User logged in.
 
 
su switch user
 
 
ifconfig stands for "interface configuration." It is used to view and change the configuration of the network
ifconfig
interfaces on your system.
   
nmtui (Lab Activity) Network Manager text user interface
   
hostnamectl May be used to query and change the system hostname and related settings
 
 

timedatectl may be used to query and change the system clock and its settings and enable or disable time
timedatectl
synchronization services.

 
 

Used to search and locate the list of files and directories based on conditions you specify for files that match
find the arguments.
Find can be used in a variety of conditions like you can find files by permissions, users, groups, file type,
date, size, and other possible criteria.

 
 

The tar command stands for tape achieve, which is the most commonly used tape drive backup command
used by the Linux/Unix system.
tar
It allows for you to quickly access a collection of files and placed them into a highly compressed archive file
commonly called tarball, or tar, gzip, and bzip in Linux.

 
 

chattr (Change Attribute) is a command line Linux utility that is used to set/unset certain attributes to a file in
chattr Linux system to secure accidental deletion or modification of important files and folders, even though you are
logged in as a root user.

lsattr List attributes of a file


Advanced Operating Systems - 5201
kumar.aditya@humber.ca

Linux Commands that Sys Admins should know


Top command is used to show the Linux processes.
It provides a dynamic real-time view of the running system.
top
Usually, this command shows the summary information of the system and the list of processes or threads
which are currently managed by the Linux Kernel.
 
 
df The df and du commands are two small utilities that are extremely useful. The df command displays the disk
du free space and the du command displays the disk usage.
 
 

Uptime is a command that returns information about how long your system has been running together with
uptime the current time, number of users with running sessions, and the system load averages for the past 1, 5, and
15 minutes.

 
 
Who, when, and from where? Good security practices say you should know who's been accessing your Linux
last system
It is used to display the list of all the users logged in and out since the file /var/log/wtmp was created
 
 

uname (short for unix name) is a computer program in Unix and Unix-like computer operating systems that
uname
prints the name, version and other details about the current machine and the operating system running on it.

 
 
Command-line network utility that displays network connections for Transmission Control Protocol (both
netstat incoming and outgoing), routing tables, and a number of network interface (network interface controller or
software-defined network interface) and network protocol statistics
 
 

nslookup (name server lookup) is a tool used to perform DNS lookups in Linux.
nslookup It is used to display DNS details, such as the IP address of a particular computer, the MX records for a domain
or the NS servers of a domain.

 
 
The ssh command provides a secure encrypted connection between two hosts over an insecure network. Port
ssh
22 is used in ssh connections.
 
 
lscpu The lscpu command in Linux displays information about the CPU architecture
 
 
The file /proc/cpuinfo displays what type of processor your system is running including the number of CPUs
cat /proc/cpuinfo
present.

You might also like