Professional Documents
Culture Documents
Shell basics:
cmd option argument
useradd -u 2001 user01
Terminal
also known as console
physical console (TTY):teletype
virtual console (PTS): Pseudo terminal slave
ctrl+alt+(F1-F6): terminal
TTY1: Welcome screeen
TTY2: graphical
TTY3-6: CLI
Gui:PTS1-6
Terminal
alt+f2
gnome-terminal
for passing comment "#"
for opening new terminal in terminal: ctrl+shift+T
for inreasing font size:left sided ctrl+shift++
for decreasing font: ctrl+alt or shift+-
TTY
for finding username : whoami
who (user with TTY)
w (for more detailed info)
to create dir
mkdir: to create dir : mkdir a/b/c/d -pv
mkdir a, mkdir b : for creating seperate folders
mkdir foldername -pv: to make sub dir [p: parrent dir , v :vervos (used for
showing execution cmd report)]
rmdir : for removing blank dir
rm -rvf *: for removing all files
rm -rvf filename:[recursive vervos forcefully] for deleting all files subfiles.
**mkdir MCC; cd MCC ; mkdir SEM 1 SEM 2:
tree MCC/
**history
![command number]
for creating files : cat [for creating or reading ], vim, gedit, echo [for
appending files] ,
**cat> file1.txt
**cat>>file1.txt [>> for adding lines]
welcome to jetking!
ctrl+d[for saving files]
for checking graphically gedit file1.txt
for checking files cat file1.txt
touch filename : create blank file and change timestamp of any files and folder
**echo
echo "text line ">file1.txt[> for replacing lines and >> for adding lines]
16/02/2022
--------------------------------------pg 64
17/02/2022 Chapter 4
* -k [keyword ]
man -k mkdir
*updatedb [for updating database for help]
mandb
what is mkdir
man mkdir 1p
* UID range s
0 reserved for root user
1-200 reserved for sys users assigned to sys process statically
201-999 reserved for sys users assigned to sys processdynamically
1000+ reserved for regular users
*useradd/mod/del