I read the book “Linux Command Line (Cover All Essential Linux Commands)“.
There are a lot of useful Linux commands. I would like to introduce some commands of them!
🐹 Matching Text Commands
- find : Look for a file
$ find directory -type f -name myfile.txt |
- grep : Show all lines that contain a specified string
🏈 Networking Commands
- host : Display remote hostname and IP
- ifconfig : Display local network configuration
- ping : Send packets to test if remote host reachable
- ssh : Securely connect to a remote computer
- ftp : Files transfer by “File Transfer Protocol”
- open : Connect to an ftp server
- mail : Send and receive mail locally and globally
- nslookup : Query internet name servers interactively for IP info
🎉 Process Commands
- ps : Show the current process of user (Process show)
- kill : Kill a process by process id
- w : Show all current working process
- df : Show disk usage of file system
- uptime : Show system uptime
- top : View the top active process or specified process
🎳 System Commands
- mount : Make a device available to file system
- unmount : Make a device unavailable to file system
- du : Show disk usage of a file or directory
- export : Set an environment variable
- printenv : List environment variable names and values
- unset : Remove the environment variable
🍮 Helping Commands
- man : Display manual for a command
🗻 Permission Commands
- chmod : Change mode of access permissions
- chgrp : Change group membership
- chown : Change ownership of a file or directory
🐮 Date & Time Commands
- date : Display date and time
- cal : Display a calendar of month
🤔 Compress Command
- zip : Compress a file to zip format
- unzip : Uncompress a file from zip format
- gzip : Compress a files to gzip format
- gunzip : Uncompress a files from gzip format
- bzip2 : Compress files to bz2 format
- bunzip2 : Uncompress files from bz2 format
🐝 Scripting Commands
- echo : Display text
- expr : Perform math calculation
#!/bin/bas
: Always put in the first line of a bash scripts
🚌 Viewing File Commands
- head : Show the front part content of a file
- tail : Show the last part contents of a file
- aspell : Spelling check for a file
- sort : Show lines of text sorted alphabetically
cat | less
: Display a file contents page by page
🚕 Comparing File Commands
- diff : Show differences between two files
🏀 Directory Commands
- basename : Display the last part of a file path
- dirname : Show the directory path only
🍣 Other Basic Commands
- ls: List
$ ls -t # List sorted by timestamp |
- wc : Show word count of file
- file : Estimate the type of a file
- readlink : Show the target of a symbolic link
- pwd : Print working directory
🖥 Recommended VPS Service
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!