Linux I/O Redirection
Redirection can be defined as changing the way from where commands read input to where commands send output. You can redirect input and output of
Redirection can be defined as changing the way from where commands read input to where commands send output. You can redirect input and output of
File archiving is used when one or more files need to be transmitted or stored as efficiently as possible. Archiving: Combines multiple files into one,
VI=VIsual Editor , it’s text editor in UNIX/Linux environment. It has two modes, (i) Command Mode : based on commands you can edit text ,
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>