touch file1
cp file1 file2
mkdir dir1
cd
pwd
ls
abs - cd dir1/file1
rls - cd home
cd dir1
cd file1
cd .. - 1 step backward
cd ../.. - 2 srep backward
cd - - previous dir/folder
cd - home
cd ~ - home
cp file1 file2 - file
cp -r dir1 dir2 - directory
find -name dir1
find .-name dir1
find -name file1
ln -s file1 soft-link
ln file1 hard-link
find h*
find ?ello
find hello[0-9]
ls -l - option
ls -la - multi option
ls -l hosts - argument's
sudo useradd ak - create user
sudo passwd ak - set passwprd
cat/etc/passwd - verify user create or not
su ak - swith to ak user
passwd - change ak user password
whoami
pwd
vi file1
i - insert
ESCPE
:wq - write and save
:q! - not save
:q - quit
dd - delete line
shift + z - press z 2 times - save and quit
cat > file1
"HI iam updated"
cat>> file1
"HI iam updated by append"
echo "HI iam updated" > file1
echo "HI iam updated by append" >> file1
vi file1
i - insert
ESCPE
:wq - write and save
:q! - not save
:q - quit
dd - delete line
u- replace
x - 1 word dlt
/g - search
:set nu -set numbers
shift + z - press z 2 times - save and quit
cat file1 - display file contents
more sample.txt - 100vh
less sample.txt - 100vh
q -quit
head file1 - 1st 10 lines
head -n 5 file1 - 1 to 5
tail file1 - last 10 lines
tail -n 5 file1 - last 5
whatis ls
ls --help
man ls
chmod u-r sample.txt
chmod u+w sample.txt
chmod u-e sample.txt
chmod 444 - r
chmod 777 - rwe
chgrp root file_updated
chown root file_updated
ls -l | tail ls-l input | tail output ls last lines display
ls -l | head
grep g file1
grep -i g file1
grep 4 file1
grep -n g file1
grep -v g file1
egrep "one|two" file1
ls -l
ls -l | sort
ls -l | sort -r
sort file1
sort file1 | uniq
sort file1 | uniq -c
change ownership :
sudo su
chown root file1
group ownership :
chgrp root file11
tar -cvf sample.txt sample
qzip sample.tar - compress
qzip -d sample.tar.gz - extract
sudo useradd ak
sudo passwd ak123
sudo useradd -u 1000 ak - user id
sudo usermod --login ak ajith - rename user
sudo usermod -s /bin/cshell ajith - change shell
sudo userdel ak - delt user
sudo groupdel ak - delt group
sudo userdel -r ak - delt single commend
sudo visudo - ediror
ak ALL = (ALL: ALL) ALL
sudo cat/etc/passwd - verify user
sudo cat/etc/shadow - verify password
sudo cat/etc/group - verify group
su ak
users
wall
Hiii..Hellooooooo
ctrl+D
write ak
Hiii..Hellooooooo
Hiii..Hellooooooo
ctrl+D
hostname :
cat/etc/hostname
sudo vi/cat/etc/hostname
sudo init 6
restart
password schedule:
sudo chage --maxdays 30 ubuntu
sudo chage -w 3 ubuntu
sudo chage -d -1 ubuntu
sudo chage -lastday 0 ubuntu
dls password expired:
sudo chage --1 list ubuntu
log :
cd/var/log
monitor commend :
who
w
id
id ak
networking :
ip link show
ip i
ip address show
ip a
ip route show
ip r
cat/etc/resolv.conf
Is /etc/sysconfig/network-scripts/
cat /etc/sysconfig/network-scripts/ifcfg-eth0
sudo ip route add 192.11.12.31 via
Top comments (0)