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

What's hot

Linux Command Line
Linux Command LineLinux Command Line
Linux Command Line
Prima Yogi Loviniltra
 
Tomáš Čorej - OpenSSH
Tomáš Čorej - OpenSSHTomáš Čorej - OpenSSH
Tomáš Čorej - OpenSSH
webelement
 
Pop3stat sh
Pop3stat shPop3stat sh
Pop3stat sh
Ben Pope
 
Perintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemPerintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating Sistem
Roziq Bahtiar
 
Orm
OrmOrm
50 Perintah Dasar pada linux
50 Perintah Dasar pada linux50 Perintah Dasar pada linux
50 Perintah Dasar pada linux
ReskyRian
 
Swift - Krzysztof Skarupa
Swift -  Krzysztof SkarupaSwift -  Krzysztof Skarupa
Swift - Krzysztof Skarupa
Sunscrapers
 
Golang勉強会
Golang勉強会Golang勉強会
Golang勉強会
Shin Sekaryo
 
The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196
Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 20 of 184
The Ring programming language version 1.5.3 book - Part 20 of 184The Ring programming language version 1.5.3 book - Part 20 of 184
The Ring programming language version 1.5.3 book - Part 20 of 184
Mahmoud Samir Fayed
 
/Root/exam unidad1/muestraip red
/Root/exam unidad1/muestraip red/Root/exam unidad1/muestraip red
/Root/exam unidad1/muestraip red
AntonioAlejoAquino
 
01 linux basics
01 linux basics01 linux basics
01 linux basics
Robson Levi
 
Android taipei 20160225 淺談closure
Android taipei 20160225   淺談closureAndroid taipei 20160225   淺談closure
Android taipei 20160225 淺談closure
Gance Zhi-Hong Zhu (朱智鴻)
 
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180
Mahmoud Samir Fayed
 
Xstartup
XstartupXstartup
Xstartup
Ahmed Abdelazim
 
Dev day linux redu
Dev day linux reduDev day linux redu
Dev day linux redu
Tarcisio Coutinho
 
The Ring programming language version 1.5.4 book - Part 23 of 185
The Ring programming language version 1.5.4 book - Part 23 of 185The Ring programming language version 1.5.4 book - Part 23 of 185
The Ring programming language version 1.5.4 book - Part 23 of 185
Mahmoud Samir Fayed
 
Type script in practice
Type script in practiceType script in practice
Type script in practice
Bryan Hughes
 
はじめてのGroovy
はじめてのGroovyはじめてのGroovy
はじめてのGroovy
Tsuyoshi Yamamoto
 
Coding with Vim
Coding with VimCoding with Vim
Coding with Vim
Enzo Wang
 

What's hot (20)

Linux Command Line
Linux Command LineLinux Command Line
Linux Command Line
 
Tomáš Čorej - OpenSSH
Tomáš Čorej - OpenSSHTomáš Čorej - OpenSSH
Tomáš Čorej - OpenSSH
 
Pop3stat sh
Pop3stat shPop3stat sh
Pop3stat sh
 
Perintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemPerintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating Sistem
 
Orm
OrmOrm
Orm
 
50 Perintah Dasar pada linux
50 Perintah Dasar pada linux50 Perintah Dasar pada linux
50 Perintah Dasar pada linux
 
Swift - Krzysztof Skarupa
Swift -  Krzysztof SkarupaSwift -  Krzysztof Skarupa
Swift - Krzysztof Skarupa
 
Golang勉強会
Golang勉強会Golang勉強会
Golang勉強会
 
The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196The Ring programming language version 1.7 book - Part 29 of 196
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
The Ring programming language version 1.5.3 book - Part 20 of 184The Ring programming language version 1.5.3 book - Part 20 of 184
The Ring programming language version 1.5.3 book - Part 20 of 184
 
/Root/exam unidad1/muestraip red
/Root/exam unidad1/muestraip red/Root/exam unidad1/muestraip red
/Root/exam unidad1/muestraip red
 
01 linux basics
01 linux basics01 linux basics
01 linux basics
 
Android taipei 20160225 淺談closure
Android taipei 20160225   淺談closureAndroid taipei 20160225   淺談closure
Android taipei 20160225 淺談closure
 
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180
 
Xstartup
XstartupXstartup
Xstartup
 
Dev day linux redu
Dev day linux reduDev day linux redu
Dev day linux redu
 
The Ring programming language version 1.5.4 book - Part 23 of 185
The Ring programming language version 1.5.4 book - Part 23 of 185The Ring programming language version 1.5.4 book - Part 23 of 185
The Ring programming language version 1.5.4 book - Part 23 of 185
 
Type script in practice
Type script in practiceType script in practice
Type script in practice
 
はじめてのGroovy
はじめてのGroovyはじめてのGroovy
はじめてのGroovy
 
Coding with Vim
Coding with VimCoding with Vim
Coding with Vim
 

Similar to RedHat/CentOs Commands for administrative works

Linux cheat sheet
Linux cheat sheetLinux cheat sheet
Linux cheat sheet
Pinaki Mahata Mukherjee
 
Linux lecture5
Linux lecture5Linux lecture5
Linux lecture5
ranapoonam1
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheet
MRATUNJAI TIWARI
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheet
Jogesh Rao
 
Terminal linux commands_ Fedora based
Terminal  linux commands_ Fedora basedTerminal  linux commands_ Fedora based
Terminal linux commands_ Fedora based
Navin Thapa
 
List command linux fidora
List command linux fidoraList command linux fidora
List command linux fidora
Jinyuan Loh
 
NYPHP March 2009 Presentation
NYPHP March 2009 PresentationNYPHP March 2009 Presentation
NYPHP March 2009 Presentation
brian_dailey
 
DevChatt 2010 - *nix Cmd Line Kung Foo
DevChatt 2010 - *nix Cmd Line Kung FooDevChatt 2010 - *nix Cmd Line Kung Foo
DevChatt 2010 - *nix Cmd Line Kung Foo
brian_dailey
 
lec4.docx
lec4.docxlec4.docx
lec4.docx
ismailaboshatra
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
Teja Bheemanapally
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
Teja Bheemanapally
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
Teja Bheemanapally
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
Teja Bheemanapally
 
50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
exercises-log-management-rsyslog.pdf
exercises-log-management-rsyslog.pdfexercises-log-management-rsyslog.pdf
exercises-log-management-rsyslog.pdf
SngB2
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
Codigos
CodigosCodigos
Codigos
Brian Joseff
 
InstructionsInstructions for numberguessernumberGuesser.html.docx
InstructionsInstructions for numberguessernumberGuesser.html.docxInstructionsInstructions for numberguessernumberGuesser.html.docx
InstructionsInstructions for numberguessernumberGuesser.html.docx
dirkrplav
 

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

Linux cheat sheet
Linux cheat sheetLinux cheat sheet
Linux cheat sheet
 
Linux lecture5
Linux lecture5Linux lecture5
Linux lecture5
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheet
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheet
 
Terminal linux commands_ Fedora based
Terminal  linux commands_ Fedora basedTerminal  linux commands_ Fedora based
Terminal linux commands_ Fedora based
 
List command linux fidora
List command linux fidoraList command linux fidora
List command linux fidora
 
NYPHP March 2009 Presentation
NYPHP March 2009 PresentationNYPHP March 2009 Presentation
NYPHP March 2009 Presentation
 
DevChatt 2010 - *nix Cmd Line Kung Foo
DevChatt 2010 - *nix Cmd Line Kung FooDevChatt 2010 - *nix Cmd Line Kung Foo
DevChatt 2010 - *nix Cmd Line Kung Foo
 
lec4.docx
lec4.docxlec4.docx
lec4.docx
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
 
exercises-log-management-rsyslog.pdf
exercises-log-management-rsyslog.pdfexercises-log-management-rsyslog.pdf
exercises-log-management-rsyslog.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
Codigos
CodigosCodigos
Codigos
 
InstructionsInstructions for numberguessernumberGuesser.html.docx
InstructionsInstructions for numberguessernumberGuesser.html.docxInstructionsInstructions for numberguessernumberGuesser.html.docx
InstructionsInstructions for numberguessernumberGuesser.html.docx
 

More from Md Shihab

Samba
SambaSamba
Samba
Md Shihab
 
Nfs
NfsNfs
Maria db
Maria dbMaria db
Maria db
Md Shihab
 
Mail
MailMail
Mail
Md Shihab
 
Iscsi
IscsiIscsi
Iscsi
Md Shihab
 
Dns
DnsDns
Dhcp
DhcpDhcp
Dhcp
Md Shihab
 
Boot
BootBoot
Boot
Md Shihab
 
Rhel 7 root password reset
Rhel 7 root password resetRhel 7 root password reset
Rhel 7 root password reset
Md Shihab
 
Easy vlsm
Easy vlsmEasy vlsm
Easy vlsm
Md Shihab
 
How to transfer core mode into gui in RedHat/centOs
How to transfer core mode into gui in RedHat/centOsHow to transfer core mode into gui in RedHat/centOs
How to transfer core mode into gui in RedHat/centOs
Md Shihab
 
Assignment on windows firewall
Assignment on windows firewallAssignment on windows firewall
Assignment on windows firewall
Md Shihab
 
Assignment on high availability(clustering)
Assignment on high availability(clustering)Assignment on high availability(clustering)
Assignment on high availability(clustering)
Md Shihab
 

More from Md Shihab (13)

Samba
SambaSamba
Samba
 
Nfs
NfsNfs
Nfs
 
Maria db
Maria dbMaria db
Maria db
 
Mail
MailMail
Mail
 
Iscsi
IscsiIscsi
Iscsi
 
Dns
DnsDns
Dns
 
Dhcp
DhcpDhcp
Dhcp
 
Boot
BootBoot
Boot
 
Rhel 7 root password reset
Rhel 7 root password resetRhel 7 root password reset
Rhel 7 root password reset
 
Easy vlsm
Easy vlsmEasy vlsm
Easy vlsm
 
How to transfer core mode into gui in RedHat/centOs
How to transfer core mode into gui in RedHat/centOsHow to transfer core mode into gui in RedHat/centOs
How to transfer core mode into gui in RedHat/centOs
 
Assignment on windows firewall
Assignment on windows firewallAssignment on windows firewall
Assignment on windows firewall
 
Assignment on high availability(clustering)
Assignment on high availability(clustering)Assignment on high availability(clustering)
Assignment on high availability(clustering)
 

Recently uploaded

Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 

Recently uploaded (20)

Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.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