File Commands for Linux :-
1. Print lines matching a pattern
Command:
“ awk '[pattern] {print $0}' [file] ”
2. Copy file 1 to file 2
Command:
“ cp [file1] [file2] ”
3. Copy directory 1 to directory 2
Command:
“ cp -r [directory1] [directory2] ”
4. Cut file section and print
Command: “ cut
-d[delimiter] [file] ”
5. Compare two files
Command:
“ diff [file1] [file2] ”
6. Decrypt a file
Command:
“ gpg [file.gpg] ”
7. Encrypt a file
Command: “ gpg
-c [file] ”
8. Show first 10 lines of a file
Command:
“ head [file] ”
9. Present text & allows scrolling beyond
Command:
“ less ”
10. Create a symbolic link to file
Command:
“ ln -s [/path/file] [link] ”
11. List files in the directory
Command:
“ ls ”
12. Words/lines/bytes/ in the directory
Command:
“ ls | xargs wc ”
13. List files, include hidden files
Command: “ ls
-a ”
14. Create a directory
Command:
“ mkdir [name] ”
15. Show file contents
Command: “ more
[file] ”
16. Rename a file
Command: “ mv [filename1] [filename2] ”
17. Show the current directory
Command:
“ pwd ”
18. Remove a file
Command:
“ rm [file] ”
19. Recursively remove a directory
Command:
“ rm -r [directory] ”
20. Forcefully remove a directory
Command:
“ rm -rf [directory] ”
21. Overwrite and delete a file
Command: “ shred
-u [file] ”
22. Compile from source code
Command:
“ source [file] ”
23. Run programs with
superuser/root/administrator
Command:
“ sudo ”
24. Show the last 10 lines of a file
Command:
“ tail [file] ”
25. Create a new file
Command:
“ touch [file] ”
26. Count words/lines/bytes
Command: “ wc
”
27. Store command output to a file, skip
terminal output
Command: “ [command]
| tee [file] >/dev/null ”
28. Cut data section and print
Command: “ [data]
| cut -d[delimiter] ”
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
Zaproxy dolore alias impedit expedita quisquam.
your credientials will not be public
ZAP
01/Apr/2024Zaproxy dolore alias impedit expedita quisquam.