redhat admin
redhat admin
Day 1
1. Linux History
● Kickstart: Automated
● Graphical
● Text-based
4. Linux Components
5. Shell Types
cd .. Go up one directory
cd ~ Go to home directory
cd - Go to previous directory
ls List directory contents
Command Explanation
Day 3
1. Vi Text Editor
● Powerful, default text editor in Linux/Unix systems.
● Three modes:
○ Command mode – for deleting, copying, navigation.
○ Insert mode – for editing/inserting text.
○ Last line mode – for saving, searching, advanced commands.
2. Initialization Files
● Global:
/etc/profile, /etc/bash.bashrc
● User-specific:
○ ~/.profile, ~/.bash_profile, ~/.bash_login, ~/.bashrc
3. Environment Variables
Key Action
Cursor Movement
Key Action
k, Up Arrow Up
w Next word
b Previous word
e End of word
0 Beginning of line
G End of file
nG / :n Go to line number n
Editing Text
Key Action
s Replace character
x Delete character
dw Delete word
dd Delete line
Command Function
n, N Next/previous match
Command Function
yy Yank line
Command Function
:w Save
Customization
Command Function
Environment Variables
Variable Description
ALIAS COMMANDS
Command Explanation
Day 4
1. Processes, Priorities, and Signals
● Priority/Niceness:
○ Users can only lower their process priority (+19); root can raise it (-20).
2. Redirection
● Redirect standard output, input, and error.
3. Pipelines
● Using wc, diff, grep, cut, tr, sort for text and file processing.
Process Management
Command Explanation
ps -f Full details
Job Control
Command Explanation
Command Explanation
command 2> errs > results Redirect error to errs and output to results
`command1 command2`
Command Explanation
sort -t: -k1 /etc/passwd Sort by first field using ":" separator
sort -t: -n -k3 -o passwd_sorted Sort numerically by 3rd field and output to
/etc/passwd passwd_sorted
Day5
Topics Covered:
Command Explanation
Disk Usage
Command Explanation
Command Explanation
Command Explanation
File Search
Command Explanation