Linux Commands: 1. PWD - Print Working Directory
Linux Commands: 1. PWD - Print Working Directory
3. ls – list files
ls -l – list with details
ls -lh – list with human readable size specifications
4. touch [file_name] – creates the file if it does not exist, otherwise, it updates its
timestamp
5. cat <file> - print the contents of the file
NOTE: if the destination is the same folder, then the file (or folder) is renamed.
10. rm [-r] [target] – removes the target file or folder. If the target is a folder,
than the -r parameter is needed (-r – recrusive)
13. wc – word count. Displays lines count, words count, and characters count.
Linux Permissions
The permissions are always presented in 3 groups:
- owner
- group
- all users
File editors
VIM
i – edit
esc – select “menu”
:w [file_name] – save file
:q – quit
:wq – save and exit
:q! - the only way to quit if no change has been performed
NANO
All the commands are displayed at the footer of the application.
^ - means the combination of “Ctrl” and the followup letter