My 33 most frequent used Linux commands
- ls: Listing the file/directory.(ls -af or ls -l) and ll is also a good command. ll = ls -al.
- cd or (cd ~, cd -) Using to travel in the file system.
- mkdir (mkdir -p): Create an directory.
- touch: Create a empty file.
- cp -rf Copy some file or directory
- rm -rf: Delete some file or director
- tar: Extract or compress files into a TAR file.
- tail -f or tail -n: Using to show “live” a file
- head -n: Show n lines of file, from top to bottom
- echo: Print a variable
- grep -i or grep -A: Wrapping a text string from files or output string
- ctrl +: Kill the current process.
- ctrl + c: Send an INT interrupt to a process
- find: Searching a file in file system.
- whereis: Searching a file of command in directory which contains in PATH variable
- sed: Very complex command, using to filter a text string from file or output string
- cut -cn-m: Cut from nth column to mth column.
- cat: Using to mix some files to a file or to view the content of file
- file: Using to know the type of file
- kill: Using to kill the process
- top: Using to know which background processes are running
- bg: Forcing the process into background
- fg: Forcing a background process to a foreground process
- df: Using to know the statistic disk
- du: To know how much you used your disk
- which: Where a command is
- id: Show your information account: username, uid, guid, home directory, and the shell
- uname: Show information about your system which version is.
- alias del=”rm -v” Create an alias.
- date: Show date time information
Commands for Network debugging:
- telnet : Trying to test connection to a remote server with a particular port.
- curl , **curl -v https://url::** Trying to query a http request to remote server or testing network connection to a remote server
- netstat -an There are a lot of options for this command to check the network IO in server