Created
November 12, 2024 11:20
-
-
Save psahni/e8169cc318ae42a64584467c5a203476 to your computer and use it in GitHub Desktop.
common_linux_commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux commands - commonly used | |
๐๐ฎ๐๐ถ๐ฐ๐: | |
`man` - Skim through manual for better understanding. | |
`nano` / `vim` - Use nano for basic editing, vim for advanced editing. | |
`ls -l` - List files with detailed info. | |
`ssh` - Connect to remote machines securely. | |
`df` / `du -hs *` - Check disk space usage. | |
`chown` / `chmod` - Change ownership and permissions of files. | |
`dig` - DNS lookup to find IPs of hostnames. | |
๐๐๐ฒ๐ฟ๐๐ฑ๐ฎ๐ ๐จ๐๐ฒ: | |
`history` - View command history. | |
`cd -` - Switch to the previous directory. | |
`xargs` - Build and execute commands from input, with parallel execution support. | |
`pstree -p` - Display the process tree with process IDs. | |
`pgrep` / `pkill` - Find and signal processes by name. | |
๐ฃ๐ฟ๐ผ๐ฐ๐ฒ๐๐๐ถ๐ป๐ด ๐๐ถ๐น๐ฒ๐ ๐ฎ๐ป๐ฑ ๐๐ฎ๐๐ฎ: | |
`find . -iname '*file*'` - Locate files by name. | |
`grep` / `ack` / `ag` - Search within files, with ag being the fastest. | |
`awk` / `sed` - Manipulate and format text. | |
`sort` / `uniq` - Sort and find unique lines. | |
`cut` / `paste` - Extract or combine columns of text. | |
๐ฆ๐๐๐๐ฒ๐บ ๐๐ฒ๐ฏ๐๐ด๐ด๐ถ๐ป๐ด: | |
`top` / `htop` - View system performance and resource usage. | |
`netstat -lntp` - List all listening ports and associated processes. | |
`dstat` - Combined system stats view. | |
`strace` - Trace system calls and signals. | |
`lsof` - List open files and associated processes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment