• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Important Linux Commands That School Won’t Teach You

AnonyViet by AnonyViet
January 1, 2023
in Network
0

Whether you are a Sysadmin, Developer, DevOps, Security or Ops… using Linux effectively and its tools is the most basic skill you can learn. Linux is the backbone of the majority of servers and applications around the world.

“47% of developers use a Linux-based operating system.”

Over the past few months, I’ve read many articles like ’20 Linux Commands You Must Know’ or ‘The Linux Survival Guide’. The problem that I have found mainly these articles are mainly for beginners, teach how to use ls or echo. As for this article, you will be introduced to Linux commands that you may have never encountered.

Important Linux Commands That School Won’t Teach You

Utilities

rsync

Used to copy files and folders similar to cp. However, it also allows copying to remote locations like to Google Drive, OneDrive, FTP… and provides a progress bar, as is commonly used for backups.

# Ví dụ
$ rsync -vap --ignore-existing <source_file> <destination_file>
#  Tham số:
v = verbrose, r = recursive, p = preserve permissions, g = group, o = owner, a = archive, --progress = progresss bar

mkpasswd

mkpasswd is a simple but very useful command, it generates a complex random password of the specified length.

$ mkpasswd -l 8
> iwF1g2Lo

screen

Screen It’s most beneficial when you’re remote using SSH and worry if the network goes down that could ruin everything. Screen will continue to execute Linux commands even though your SSH connection has been broken.

# Ví dụ
$ screen # Chạy phiên làm việc 
$ screen -ls # Hiên thị các services đang chạy
$ screen -r # Attach to session

Ldapsearch

If you often work with LDAP databases, then Ldapsearch is a Linux command that should be used mandatory. The opener connects to the LDAP server and allows you to search, find, and debug entries in the database.

Uptime

Uptime returns metrics for how long the server has been running, current time, number of users, and average memory usage. If something goes wrong on your server, this is the first command you should use.

You can use the command w – only letter w to see information about server uptime.

Wall

Wall is a handy command for any Sysadmin; it allows you to send messages to the devices of everyone currently logged into the system. This can be very useful for system-wide notifications.

$ wall "Thong bao - He thong se bao tri vao luc 13:30" Thong bao duoc phat tu AnonyViet [email protected]: Maintenance scheduled for 13:30

top

Command top Displays a list of active CPU processes, RAM usage and CPU usage metrics.

Ncdu

Command ncdu provides a convenient view of hard disk usage. You can use ncdu to quickly and easily see which folders are using the most disk space.

lsof

lsof is a single command used for one basic purpose: LiSt Open Files. This command quickly determines which files are being used by which processes.

Network-related commands – Network

Netcat

Netcat or nc Mainly used for port scanning – port scan but is actually a very useful utility Network tool for Sysadmin. Netcat can support port scanning, file copying, Nat Port, proxy servers, and hosting servers… this command is very flexible and full of features

NetStat

netstat returns various network details like routing table, network connection, membership, stats, flags etc

#Ví dụ
$ netstat -a # Xem các Port của mạng
$ netstat -tlpn # Xem các port đang lắng nghe listening ports
# Tham số
-s = Show statistics, -v = verbrose, -r = show routing tables, -i display interface table, -g = show group memeberships

Nslookup

Used to get information about servers on your internet or LAN. It queries DNS for server information and can be useful for network debugging.

# Ví dụ Cách sử dụng
$ nslookup media.com/tags/devops 
# Key Flags
 -port = Thay đổi số cổng cho kết nối, -type = Thay đổi loại truy vấn. -domain = Đặt danh sách tìm kiếm thành tên

TCPDump

Used to capture and analyze traffic to and from your system. tcpdump is a powerful and flexible tool that specializes in network debugging and troubleshooting but can also be used as a security tool.

# Cách sử dụng
$ tcpdump
$ tcpdump -i <interface> <ipaddress or hostname> <port>

Ad-Hoc command

See beautiful JSON format

Reading JSON data in Terminal can be very frustrating when working with APIs. As you can see below, even a small set of data quickly becomes a mess when displayed on the command line making it very difficult to read.

$ cat test.json
{"title":"Person","type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"age":{"description":"Age in years","type":"integer","minimum":0}},"required":["firstName","lastName"]}

By reading the JSON file in python, you will see the result appear nicer and easier to see.

$ cat test.json | python -m json.tool
{
    "properties": {
        "age": {
            "description": "Age in years",
            "minimum": 0,
            "type": "integer"
        },
        "firstName": {
            "type": "string"
        },
        "lastName": {
            "type": "string"
        }
    },
    "required": [
        "firstName",
        "lastName"
    ],
    "title": "Person",
    "type": "object"
}

Compare the results of two commands

Example comparing the results of 2 commands ls:

$ diff -u <(ls -l /directory/) <(ls -l /directory/) | colordiff

List all Systemd . services

systemctl -l -t service | less

Hope you learned something from the Linux commands above; Linux mastery can be extremely helpful given the popularity of free Linux and its large support community, statistically 96.3% of a million web hosts are running Linux.

The article achieved: 4.9/5 – (103 votes)

Tags: commandsImportantLinuxSchoolTeachWont
Previous Post

Forget the Galaxy S23 – Google Pixel 7a will be the best Android phone of 2023

Next Post

Villain – Bypass AntiVirus hijacks Shell Windows and Linux

AnonyViet

AnonyViet

Related Posts

Is Renting a Cheap VPS to Run Docker Really Effective?
Network

Is Renting a Cheap VPS to Run Docker Really Effective?

July 2, 2026
How to get a free domain for 1 year from Gravatar
Network

How to get a free domain for 1 year from Gravatar

June 23, 2026
Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes
Network

Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes

June 20, 2026
Save image as Type contains malicious code: Remove immediately before losing money unfairly!
Network

Save image as Type contains malicious code: Remove immediately before losing money unfairly!

March 19, 2026
Instructions on how to register a .co.uk domain name for free for 1 year
Network

Instructions on how to register a .co.uk domain name for free for 1 year

March 12, 2026
How to Setup Paperclip AI: Create a Company for AI Agent
Network

How to Setup Paperclip AI: Create a Company for AI Agent

March 12, 2026
Next Post
Villain – Bypass AntiVirus hijacks Shell Windows and Linux

Villain - Bypass AntiVirus hijacks Shell Windows and Linux

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

Instructions for Logo Design in just a few clicks with Logaster

Instructions for Logo Design in just a few clicks with Logaster

July 20, 2026
Clean Tam – Accompanying the green space of every Vietnamese family

Clean Tam – Accompanying the green space of every Vietnamese family

July 20, 2026
3 coolest ways to turn off your computer

3 coolest ways to turn off your computer

July 19, 2026
Instructions on how to get Norton 360 Deluxe for 1 year for free

Instructions on how to get Norton 360 Deluxe for 1 year for free

July 19, 2026
Instructions for Logo Design in just a few clicks with Logaster

Instructions for Logo Design in just a few clicks with Logaster

July 20, 2026
Clean Tam – Accompanying the green space of every Vietnamese family

Clean Tam – Accompanying the green space of every Vietnamese family

July 20, 2026
3 coolest ways to turn off your computer

3 coolest ways to turn off your computer

July 19, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Instructions for Logo Design in just a few clicks with Logaster

Instructions for Logo Design in just a few clicks with Logaster

July 20, 2026
Clean Tam – Accompanying the green space of every Vietnamese family

Clean Tam – Accompanying the green space of every Vietnamese family

July 20, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply