LInux
LInux
inux user/apps/shell/kernel/hardware
**********************************************************************
user/file file/Directory ls, cd pwd mkdir rm cp touch cat grep find tar Gzip
gunzip ZIP Chmod chown chgrp tail SORT AWK sed cut tr export search history
init useradd usermod userdel groupadd groupmod groupdel su su-
top(-o mem) kill ifconfig ping ssh scp Wget curl diff Head chroot file hexdump wc
tee script keys
which whereis locate date cal start/stop/restart services shutdown ps crontab at
nohup bg fg apropos info alias uname df du mount In
sed
***********************************************************************************
************************
ls -a, ls -l cd .. pwd mkdir -p, rm -rf, touch, cp -r, open ., find . -name ,
find . -type d(directory), f(file), l(symbolic), -name case sensitive -iname case
insensitive
ln -s gzip -c, gzip-k, -r, -k, gunzip, tar -cf, -xf, -czf, cat -
n, -b, -s, less, tail -f, -n, wc -l, -c, -w, -m, grep -n -v -i, sort uniq, diff -u
-rq,echo
chown -R -normal file d directory, l link, a u g o, du *, du -m,
-g, -h df -h basename, dirname, ps ax,
***********************************************************************************
*************************
Shebang
permissions and execution
Read input from user
Command Substitution
Arguments passing
Arimetic operations (())
Conditions [[]]
Loops if elif
for while until break and continue
Functions Funtions with return values
Arrays
Variable
dictionaries
Set options
***********************************************************************************
************************************
************************************************System*****************************
************************************
booting basic input and output system
Master boot record partitions master boot record( IPL, SBL, PTI)
GRUB
kernel
init level
Run level
LVM
software management
remote storage
************************************************users******************************
******************************************
user /etc/passwd, /etc/shadow, .bash_profile, .bash.output, .bashrc, password aging
policies
- regular file, d - directory file, c - character file, b - block
device file, s - socket file, p - pipe file, l - linked file
*************************************************files*****************************
*********************************************
file attributes Indode number
File name
data block
************************************************service****************************
***********************************************
services
Deamon is a running in the background
systemd is a partent process
service and chkconfig two commands for checking the services
************************************************Process****************************
***********************************************
process
samba server wed server mail server mysql server log sever
*************************************************Network***************************
***************************************************
network
NIC
media
topology
protocol
IP addresses
IP tables and firewalls
***********************************************************************************
******************************