SlideShare a Scribd company logo
IDB-BISEW
MD. SHIHAB HOSSAIN
A simple keyboard shortcuts layout
1. [Ctrl] + [Alt] + [Backspace] = kills your current X session.
2. [Ctrl] + [Alt] + [Delete] = From a non-graphical shell prompt, shuts down your Red Hat
Enterprise Linux system.
3. [Ctrl] + [Alt] + [Fn] = switches screens. [Ctrl]+[Alt] + one of the function keys displays
an available screen. By default, [F1] through [F6] are text-mode shell prompt screens and
[F7] is the graphical desktop screen.
4. [Alt] + [Tab] = switches tasks in a graphical desktop environment.
5. [Ctrl] + [a] = moves cursor to the beginning of a line.
6. [Ctrl] + [d] = logout of (and close) shell prompt. [Ctrl] + [e] = moves cursor to end of a
line. This works in most text editors and in the URL field in Mozilla.
7. [Ctrl] + [l] = clears the terminal
8.
9. [Ctrl] + [u] = clears the current line.
a. .
10. [Middle Mouse Button] = pastes highlighted text.
11. [Tab] = command autocomplete
12. [Up] and [Down] Arrow = shows command history.
13. clear = clears the shell prompt screen. Type this command to clear all visible data from
the shell prompt screen.
14. exit = logout. Type this at a shell prompt to logout of the current user or root account.
15. history = shows history of commands. Type this at a shell prompt to see a numbered
list of the previous 1000 commands you typed. To display a shorter list of previously
used commands, type history followed by a space and a number. For example, history
20.
16. reset = refreshes the shell prompt screen. Type this at a shell prompt to refresh the
screen if characters are unclear or appear corrupt.
17. head = showing first 10 lines
18. tail= showing last 10 lines
19. E s c + = copy the last argument of the previous command
20. C t r l + k= Clear from the cursor to the end
21. C t r l + L e f t A r row= Jump to the beginning ofthe previous word
IDB-BISEW
MD. SHIHAB HOSSAIN
Starting terminal
Application  utilities  terminal
Empty desktop right click terminal
Changing hostname
Hostnamectl set-hostname ‘’desired name’’
Command Basic
Command Option argument
Usermod -l shihab
Set local language
[root@host ~]# localctl set-locale LANG=fr_FR.utf8
yum langavailable
yum langinstall code
BashShell
[student@despktopX ~]# Super user interface
[student@despktopX ~]$ Regular user interface
IDB-BISEW
MD. SHIHAB HOSSAIN
Changing Password and status
passwd
location: file / e t c / passwd
word count
wc = for counting word
Example: wc /etc/passwd
History = for getting command history
Time and date
Example: timedatectl set-time 22:31:14
timedatectl set-timezone America/New_York
Manpage= for Manual
Man –k= for specific keyword
PWD= for getting information of present working directory
cd= for changing directory
cd..= for parent directory directly
IDB-BISEW
MD. SHIHAB HOSSAIN
touch= for creating file instantly
ll= for listing desired information
ls –al= for listing the current location with hidden file
cp= for copy
mv= for move/rename
rm= for remove
mkdir=making directory
cp –r= copy directory
rm –r = removing directory
grep= for specific topic query(Ex: grep “model name” /proc/cpuinfo will give
cpuinfo instantly)
IDB-BISEW
MD. SHIHAB HOSSAIN
vim= for editing text ( I for insert, v for visualmode, esc for initial mode, wq/x for
saveand quit)
gedit= For graphicaltext editing
nano= used also for editing text
pinfo= To view the file information
tar = for archiving files and folder (-c for create, -x for extract), rm –rf
‘’foldername’’ for deleting zipped
id= for getting user id
ps= for process information
uid= for getting uid number
su= for switching user
useradd= to add user
usermod= to modify user account (Ex: usermod -l shihab for lock user) –u for
unlock
groupadd= to add group
groupmod= to modify group (-n for new name, -g for GID)
groupdel= for deleting group
Password aging
Chage(-d for minimum days forcing password login,-lfor listing the currentuser
settings, -E for expired days)
Sudo= for delegating user with specific access)
File permission
r= read
w= write
x= execute
drwxr= directory read write and execute permission has been assigned
chmod=changing permission( u,g,o,a for ‘who’ +/- remarks add/remove permission,
rwx for ‘which’)
IDB-BISEW
MD. SHIHAB HOSSAIN
chown= to change the userownership (ex: chown - R student foodir)
umask= for masking or unmasking the user permission by using value.( 0 for will not musk, 007 for
other permission)
kill= forkillingprocess.(ex: kill pidforkillingspecificprocessid) killall=forkillingall processwithPID
uptime= for systemuptime information
top= runninggraphical interface
systemd= systemstartupand serverprocessmanger
systemctl=Query the state of all units to verify a system startup.(Ex: systemctl --type=service)
(Ex: systemctl is - active sshd will show particular active unit - all will show all active and inactive)
Daemon
We should add ‘’d’’ after any service for daemon
EX: sudo systemctl is - enabled sshd
Mask/unmask= Masking will create a link in the configuration directories so that if the service is
started nothing will happen.
EX: systemctl mask network systemctl unmask network
ssh= for establishing remote connection
(EX: ssh 192.168.10.10 ssh remoteuser@)remotehost hostname)
systemctl restart sshd= for restarting only ssh service
ssh-keygen= for creating ssh service private key
IDB-BISEW
MD. SHIHAB HOSSAIN
IP addresses
Ip addr show eth0= For getting assigned ip address on the Ethernet
ping
netstat
ip route
traceroute
‘’nmcli’’ for networking
nmcli con show= showing connection status
nmcli con show –active= showing active connection
nmcli dev status= for getting device status
nmcli dev show eth0 = specific device status
nmcli con add con - name " default " type ethernet ifname eth0= add a connection profile
nmcli con add con - name " static " ifname eth0 autoconnect no type= assigning ip address
ethernet ip4 172.25.X.10/24 gw4 172.25.X.254
nmcli con up eth0= turning on the connection profile
nmcli con reload= for reloading present connection
getent
getent hosts hostname= for testing host name resolution
yum
For updating, installing software and related repository packages
IDB-BISEW
MD. SHIHAB HOSSAIN

More Related Content

PDF
37562259 top-consuming-process
PDF
The Art of Command Line (2021)
PDF
"PostgreSQL and Python" Lightning Talk @EuroPython2014
ODP
NUMOSS 4th Week - Commandline Tutorial
PPTX
Cis 216 – shell scripting
PDF
Neoito — *NIX kungfu for web devs
PDF
ES6 generators
PDF
Gogo shell
37562259 top-consuming-process
The Art of Command Line (2021)
"PostgreSQL and Python" Lightning Talk @EuroPython2014
NUMOSS 4th Week - Commandline Tutorial
Cis 216 – shell scripting
Neoito — *NIX kungfu for web devs
ES6 generators
Gogo shell

What's hot (20)

ODP
Linux Command Line
PDF
Tomáš Čorej - OpenSSH
TXT
Pop3stat sh
PPTX
Perintah perintah dasar linux Operating Sistem
PPTX
50 Perintah Dasar pada linux
PDF
Swift - Krzysztof Skarupa
PDF
Golang勉強会
PDF
The Ring programming language version 1.7 book - Part 29 of 196
PDF
The Ring programming language version 1.5.3 book - Part 20 of 184
TXT
/Root/exam unidad1/muestraip red
PPT
01 linux basics
PPTX
Android taipei 20160225 淺談closure
PDF
The Ring programming language version 1.5.1 book - Part 24 of 180
TXT
Xstartup
PDF
Dev day linux redu
PDF
The Ring programming language version 1.5.4 book - Part 23 of 185
PPTX
Type script in practice
PDF
はじめてのGroovy
PDF
Coding with Vim
Linux Command Line
Tomáš Čorej - OpenSSH
Pop3stat sh
Perintah perintah dasar linux Operating Sistem
50 Perintah Dasar pada linux
Swift - Krzysztof Skarupa
Golang勉強会
The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.5.3 book - Part 20 of 184
/Root/exam unidad1/muestraip red
01 linux basics
Android taipei 20160225 淺談closure
The Ring programming language version 1.5.1 book - Part 24 of 180
Xstartup
Dev day linux redu
The Ring programming language version 1.5.4 book - Part 23 of 185
Type script in practice
はじめてのGroovy
Coding with Vim
Ad

Similar to RedHat/CentOs Commands for administrative works (20)

PDF
Linux cheat sheet
PPT
Linux lecture5
PPT
linux-lecture5 storage fs vm guide for linux.ppt
 
PDF
Bash cheat sheet
PDF
Bash cheat sheet
ODT
Terminal linux commands_ Fedora based
DOCX
List command linux fidora
ODP
NYPHP March 2009 Presentation
ODP
DevChatt 2010 - *nix Cmd Line Kung Foo
DOCX
lec4.docx
PDF
Linux Commands CheatSheet - PDF.pdf for engineer
DOCX
40 basic linux command
DOCX
40 basic linux command
DOCX
50 most frequently used unix
DOCX
50 most frequently used unix
PDF
RHCSA Discoverability Discoverability .pdf
DOCX
50 Most Frequently Used UNIX Linux Commands -hmftj
PDF
exercises-log-management-rsyslog.pdf
PDF
unix_ref_card.pdf
PDF
unix_ref_card.pdf
Linux cheat sheet
Linux lecture5
linux-lecture5 storage fs vm guide for linux.ppt
 
Bash cheat sheet
Bash cheat sheet
Terminal linux commands_ Fedora based
List command linux fidora
NYPHP March 2009 Presentation
DevChatt 2010 - *nix Cmd Line Kung Foo
lec4.docx
Linux Commands CheatSheet - PDF.pdf for engineer
40 basic linux command
40 basic linux command
50 most frequently used unix
50 most frequently used unix
RHCSA Discoverability Discoverability .pdf
50 Most Frequently Used UNIX Linux Commands -hmftj
exercises-log-management-rsyslog.pdf
unix_ref_card.pdf
unix_ref_card.pdf
Ad

More from Md Shihab (13)

PDF
Samba
PDF
PDF
Maria db
PDF
Mail
PDF
Iscsi
PDF
PDF
Dhcp
PDF
Boot
DOCX
Rhel 7 root password reset
DOCX
Easy vlsm
PPTX
How to transfer core mode into gui in RedHat/centOs
PPTX
Assignment on windows firewall
PPTX
Assignment on high availability(clustering)
Samba
Maria db
Mail
Iscsi
Dhcp
Boot
Rhel 7 root password reset
Easy vlsm
How to transfer core mode into gui in RedHat/centOs
Assignment on windows firewall
Assignment on high availability(clustering)

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Network Security Unit 5.pdf for BCA BBA.
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Approach and Philosophy of On baking technology
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
cuic standard and advanced reporting.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
KodekX | Application Modernization Development
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation theory and applications.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
Teaching material agriculture food technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
Network Security Unit 5.pdf for BCA BBA.
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
Advanced methodologies resolving dimensionality complications for autism neur...
Approach and Philosophy of On baking technology
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
cuic standard and advanced reporting.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KodekX | Application Modernization Development
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation theory and applications.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Teaching material agriculture food technology
Chapter 3 Spatial Domain Image Processing.pdf

RedHat/CentOs Commands for administrative works

  • 1. IDB-BISEW MD. SHIHAB HOSSAIN A simple keyboard shortcuts layout 1. [Ctrl] + [Alt] + [Backspace] = kills your current X session. 2. [Ctrl] + [Alt] + [Delete] = From a non-graphical shell prompt, shuts down your Red Hat Enterprise Linux system. 3. [Ctrl] + [Alt] + [Fn] = switches screens. [Ctrl]+[Alt] + one of the function keys displays an available screen. By default, [F1] through [F6] are text-mode shell prompt screens and [F7] is the graphical desktop screen. 4. [Alt] + [Tab] = switches tasks in a graphical desktop environment. 5. [Ctrl] + [a] = moves cursor to the beginning of a line. 6. [Ctrl] + [d] = logout of (and close) shell prompt. [Ctrl] + [e] = moves cursor to end of a line. This works in most text editors and in the URL field in Mozilla. 7. [Ctrl] + [l] = clears the terminal 8. 9. [Ctrl] + [u] = clears the current line. a. . 10. [Middle Mouse Button] = pastes highlighted text. 11. [Tab] = command autocomplete 12. [Up] and [Down] Arrow = shows command history. 13. clear = clears the shell prompt screen. Type this command to clear all visible data from the shell prompt screen. 14. exit = logout. Type this at a shell prompt to logout of the current user or root account. 15. history = shows history of commands. Type this at a shell prompt to see a numbered list of the previous 1000 commands you typed. To display a shorter list of previously used commands, type history followed by a space and a number. For example, history 20. 16. reset = refreshes the shell prompt screen. Type this at a shell prompt to refresh the screen if characters are unclear or appear corrupt. 17. head = showing first 10 lines 18. tail= showing last 10 lines 19. E s c + = copy the last argument of the previous command 20. C t r l + k= Clear from the cursor to the end 21. C t r l + L e f t A r row= Jump to the beginning ofthe previous word
  • 2. IDB-BISEW MD. SHIHAB HOSSAIN Starting terminal Application  utilities  terminal Empty desktop right click terminal Changing hostname Hostnamectl set-hostname ‘’desired name’’ Command Basic Command Option argument Usermod -l shihab Set local language [root@host ~]# localctl set-locale LANG=fr_FR.utf8 yum langavailable yum langinstall code BashShell [student@despktopX ~]# Super user interface [student@despktopX ~]$ Regular user interface
  • 3. IDB-BISEW MD. SHIHAB HOSSAIN Changing Password and status passwd location: file / e t c / passwd word count wc = for counting word Example: wc /etc/passwd History = for getting command history Time and date Example: timedatectl set-time 22:31:14 timedatectl set-timezone America/New_York Manpage= for Manual Man –k= for specific keyword PWD= for getting information of present working directory cd= for changing directory cd..= for parent directory directly
  • 4. IDB-BISEW MD. SHIHAB HOSSAIN touch= for creating file instantly ll= for listing desired information ls –al= for listing the current location with hidden file cp= for copy mv= for move/rename rm= for remove mkdir=making directory cp –r= copy directory rm –r = removing directory grep= for specific topic query(Ex: grep “model name” /proc/cpuinfo will give cpuinfo instantly)
  • 5. IDB-BISEW MD. SHIHAB HOSSAIN vim= for editing text ( I for insert, v for visualmode, esc for initial mode, wq/x for saveand quit) gedit= For graphicaltext editing nano= used also for editing text pinfo= To view the file information tar = for archiving files and folder (-c for create, -x for extract), rm –rf ‘’foldername’’ for deleting zipped id= for getting user id ps= for process information uid= for getting uid number su= for switching user useradd= to add user usermod= to modify user account (Ex: usermod -l shihab for lock user) –u for unlock groupadd= to add group groupmod= to modify group (-n for new name, -g for GID) groupdel= for deleting group Password aging Chage(-d for minimum days forcing password login,-lfor listing the currentuser settings, -E for expired days) Sudo= for delegating user with specific access) File permission r= read w= write x= execute drwxr= directory read write and execute permission has been assigned chmod=changing permission( u,g,o,a for ‘who’ +/- remarks add/remove permission, rwx for ‘which’)
  • 6. IDB-BISEW MD. SHIHAB HOSSAIN chown= to change the userownership (ex: chown - R student foodir) umask= for masking or unmasking the user permission by using value.( 0 for will not musk, 007 for other permission) kill= forkillingprocess.(ex: kill pidforkillingspecificprocessid) killall=forkillingall processwithPID uptime= for systemuptime information top= runninggraphical interface systemd= systemstartupand serverprocessmanger systemctl=Query the state of all units to verify a system startup.(Ex: systemctl --type=service) (Ex: systemctl is - active sshd will show particular active unit - all will show all active and inactive) Daemon We should add ‘’d’’ after any service for daemon EX: sudo systemctl is - enabled sshd Mask/unmask= Masking will create a link in the configuration directories so that if the service is started nothing will happen. EX: systemctl mask network systemctl unmask network ssh= for establishing remote connection (EX: ssh 192.168.10.10 ssh remoteuser@)remotehost hostname) systemctl restart sshd= for restarting only ssh service ssh-keygen= for creating ssh service private key
  • 7. IDB-BISEW MD. SHIHAB HOSSAIN IP addresses Ip addr show eth0= For getting assigned ip address on the Ethernet ping netstat ip route traceroute ‘’nmcli’’ for networking nmcli con show= showing connection status nmcli con show –active= showing active connection nmcli dev status= for getting device status nmcli dev show eth0 = specific device status nmcli con add con - name " default " type ethernet ifname eth0= add a connection profile nmcli con add con - name " static " ifname eth0 autoconnect no type= assigning ip address ethernet ip4 172.25.X.10/24 gw4 172.25.X.254 nmcli con up eth0= turning on the connection profile nmcli con reload= for reloading present connection getent getent hosts hostname= for testing host name resolution yum For updating, installing software and related repository packages