2. When Linux is installed the default user created is root.
3. Some basic Linux commands are:-
(a.) pwd (Present Working Directory)
for root user it will show /root
for other user it will show /home/sam (e.g. sam is user)
(b.) clear (To clear screen) or Ctrl+l
(c.) ls (Shows list of files and directories)
(d.) ls -l or ll ( Long listing of files and directories)
(e.) ls -lh ( -h is for human readable i.e. size for files or directories. )
(f.) ls -la (-a for all. lists all files and directories including hidden files)
(g.) man
(h.) info
Note:- Ctr+c or Q to exit from manual page.
(i.) useradd
(j.) passwd
(k.) id (Print identity for the user)
(l.) who (Lists users currently logged in)
(m.) whoami (List currently logged in user)
(n.) who am i (Shows the virtual console of the current logged in user. e.g. pts pseudo terminal)
(o.) tty (Lists the terminal type)
(p.) mkdir
(q.) rmdir
(r.) cd .. (Takes you to previous directory)
(s.) cd . (Current directory)
(t.) rm -rf
(u.) userdel -r