Linux- Basic Commands
Linux- Basic Commands
Prompt :
[ec2-user@ip-172-31-81-230 ~]$
2. @ → separation symbol
2. local user
3. super-user
4. system user
Commands
su - root / sudo -i → switch user to root
Basic commands
touch → to create files
rm → to remove files
cd → to change directory
Copy + paste → cp
/ → home → ec2-user → shared
|
terminal.txt
syntax : cp <source-path-of-file> <destination-dir>
cut + paste → mv
syntax : mv <source-path-of-file> <destination-dir>
Editors
1. vi → vim
2. nano
3. gedit
Vim editor
1. command mode → insert mode → press “i”
3. visual mode
press 15 + dd
File hierarchy
/ → top-level directory/ main directory/ root-level directory