Linux commands (1)
Linux commands (1)
Basics
6. mv f1 f2 ➔ rename file f1 as f2
1. ls f? ➔ list files start with ‘f’ and followed by any one character
3. ls [gpy]et ➔ list files whose first letter is any one of the character g, p
4. ls [a-d,l-m]ring ➔ list files whose first letter is any one of the character
e) I/O Redirection
1. Input redirection
2. Output redirection
f) Piping
head –6 f1 |tail –2 ➔ prints the 5th & 6th lines of the file f1.
g) Environment variables
3. echo $PS2 ➔ display the second prompt string ( > symbol by default )
5. echo $PATH ➔ list of pathname where the OS searches for an executable file
h) File Permission
Method-1
Method-2
∑read, write & execute permissions for the user ie; 4+2+1 = 7
∑ read, & execute permissions for the group members ie; 4+0+1 = 5