Linux Filesystem Hierarchy Standard (FHS)
All the directories in the Linux system come under the root(/) directory which is represented by a forward slash (/). Directory type Types of
All the directories in the Linux system come under the root(/) directory which is represented by a forward slash (/). Directory type Types of
Filetype + users permission Index / links owner user size date time File name – rw-rw-r– 1 opc opc 0 Sep 5 02:31 file2
1 Create user – w/o password login as root user useradd <username> 2 Create user – w/o password – as normal user with sudo sudo
1 Current logged in username whoami 2 All users logged in to system who 3 To find user id id 4 To see logged in
-rw-rw-r–. 1 opc opc 0 Sep 5 02:31 file2 Filetype + users permission Index / links owner user size date time File name –
1 Listing directories ls 2 Long listing ll 3 Listing with hidden/all ls -a 4 Long with hidden file ll -a 5 Listing with human
1 Creating Directory/Folder mkdir <folder-name> 2 Removing Directory rmdir <directory/folder name> 3 To know present directory pwd 4 Moving directory / Cut mv <old-dir> <new-dir>
1 To Read File cat <filename> 2 To Read Top 5 lines head -5 <filename> 3 To Read bottom 6 lined tail -6 <filename> 4
1 Creating File without data Single file : touch <filename>.<extension> Multiple files : touch <file1> <file2> <file3>… 2 Creating file with minimal data echo “Hii ! ,