You are on page 1of 3

df

df -h
free
free -h
lsblk
ls hardlink newhardlinkfile
ls -li hardlink newhardlinkfile

VIM

Modes

i
a
o --New line
G -end line
esc
:wq
ZZ

editing
dd -cut
yy -copy
P -Paste
V -arrow keys it will copy all blocks set of lines )
d
y
P
Managing
U
Ctrl -R
:q!

Wildcards
ls
ls host*
ls [hm]ost
ls ?ost
ls [!hm]ost
ls [09][09] script

grep hello /proc/* 2>/dev/null

Users

servcies [1-999]

useful
:%s/old/new/g

user /bin/bash
apps user /sbin/nologin
root 0

cd /etc/shadow
cd /etc/passwd

cd /etc/skel
touch hellowelcome .
what ever copied it will be place default when user created

useradd raja
cd /home/raja
ls

hello welcome will be part of it along with bash ,bash.profile

usermod --help

/etc/default/useradd
/etc/login.defs -->pass max days ,min days ,len ,creat hme directory etc
/etc/skel -->$HOME
/etc/passwd
/etc/shadow
/etc/group

vi /etc/group or vigr

passwd -S raja (staus of user password info)


echo password | passwd --stdin raja

chage --help

id username --to list the user info liek lsuser username

usermod -g
usermod -aG

ip addr
nmcli device status
nmcli connection show
nmcli connection add ifname eno16xx --tab
nmcli connection add ifname eno16xx type --tab
nmcli connection add ifname eno16xx type etherner --tab
nmcli connection add ifname eno16xx type ethernet ip4 192.168.4.210/24 -tab tab
nmcli connection add ifname eno16xx type ethernet ip4 192.168.4.210/24 gw4
192.168.4.2

cat /proc/partions
fdisk

bright tech

Nisanth -

9611338106
nmcli /nmtui /gui

lsmod
modprob fat
modprod -r fat
modinfo cdrom

sysctl

/etc/sysctl.conf
/etc/sysctl.d/*

/usr/lib/sysctl.d* -not to do any

sysctl -a
sysctl -a |grep -i icmp

cd /sys/module

yum update kernel

You might also like