flowchart TD
A[nirmala] --> B[ug]
A --> C[pg]
B --> D[ba]
B --> E[bsc]
B --> F[bcom]
B --> G[bca]
C --> H[ma]
C --> I[msc]
C --> J[mcom]
C --> K[mca]
mkdir -p nirmala/{ug/{ba,bsc,bcom,bca},pg/{ma,msc,mcom,mca}} #you could also expand it
bcom
rmdir nirmala/ug/bcom
cd ..
ls -al
pwd
bca
to nbca
mv nirmala/ug/bca nirmala/ug/nbca
nbca
cd nirmala/ug/nbca
bcastudent
cat > bcastudents #a blank cursor will appear, and type what you want to store, Ctrl+c to exit and save
bcastudents
sort bcastudents
mca
directory and after that display the sorted content
cd ../../pg/mca
cat > mcastudents
sort mcastudents
bcastudents
cd ../../ug/nbca
cat >> bcastudents #append to the file
cat bcastudents #print the whole file
bcastudents
grep "keyword" bcastudents
ls -a
bcastudents
wc -l bcastudents
bcastudents
cat bcastudents | tr "[a-z]" "[A-Z]"
pr
command
pr bcastudents
f1
, f2
, f3
, f4
in nbca
cat >> f1
cat >> f2
cat >> f3
cat >> f4
find
command
find -name f1 -print
f4
rm f4
f5
and implement cut command
cat >> f5
cut -c 1,2 f5
head
and tail
head -2 bcastudents
tail -2 bcastudents
file
command
file *
cmp f1 f2
diff f1 f2
chmod
command
chmod 777 f5
bc #ctrl+d to exit
expr 2 + 5 #space is needed between operands and operator
factor 49
ls
command
cd ..
touch f1 f2
ls
ls f*
ls f?
ls b*
uname
who
who am i
hostname
echo $0
cat /etc/shells
echo $PATH
tty
echo $PS1
echo $PS2
cal
command
cal
date
date "+%D"
date "+%A"
date "+%h"
date "+%y"
date "+%Y"
date "+%T"
date "+%H"
date "+%M"
date "+%S"
df
du
ps
ls -l | tee f1
logname
las -l 2> f5
cat f5
f1
and save content into it and quit
vi f1
:wq
vi f1
:1co3
:2,3d
dw
:wq