Linux Mastery - 53 Advanced Commands - V2
Linux Mastery - 53 Advanced Commands - V2
53 Advanced Commands!
Level up your command-line skills. Swipe through for system
monitoring, networking, security, and more!
By : Tech Fusionist
Sold to
dinish1993@gmail.com
Table of contents
htop vs top
Sold to
dinish1993@gmail.com
iotop: Disk I/O Monitoring
See which processes are thrashing your disk. iotop
displays real-time disk read/write activity per process.
Sold to
dinish1993@gmail.com
nmon: All-in-One
Performance Tool
A single tool for CPU, memory, network, and disk
monitoring. Great for quick system health checks.
Sold to
dinish1993@gmail.com
mpstat: CPU Usage Statistics
Dig deeper into CPU performance. mpstat provides
detailed CPU usage statistics, broken down by core.
Sold to
dinish1993@gmail.com
vmstat: Virtual Memory
Statistics
Understand memory performance. vmstat reports on
virtual memory, processes, CPU activity, and I/O.
Sold to
dinish1993@gmail.com
sar: Collect & Display
System Data
Historical system performance. sar collects, reports,
and saves system activity information over time.
Sold to
dinish1993@gmail.com
pidstat: Per-Process CPU
Monitoring
Isolate CPU hogs. pidstat monitors CPU usage,
memory, I/O, and more, on a per-process basis.
Sold to
dinish1993@gmail.com
dstat: Versatile Resource
Monitoring
The ultimate monitoring tool? dstat combines vmstat,
iostat, ifstat, and netstat to provide a unified view.
Sold to
dinish1993@gmail.com
lsof: List Open Files
Find out what's using a file. lsof lists all open files and
the processes that are using them.
Sold to
dinish1993@gmail.com
watch: Repeat Commands
Regularly
Track changes over time. watch re-runs a command
at specified intervals, highlighting differences.
Sold to
dinish1993@gmail.com
ss: Socket Statistics
A modern netstat replacement. ss displays detailed
network socket information, including TCP, UDP, and
more.
Sold to
dinish1993@gmail.com
iperf: Network Bandwidth
Testing
Measure network speed. iperf measures network
bandwidth performance between two systems.
Sold to
dinish1993@gmail.com
mtr: Ping + Traceroute
Network diagnostics in one. mtr combines ping and
traceroute functionality for network troubleshooting.
Sold to
dinish1993@gmail.com
nc (netcat): Network Swiss
Army Knife
Open connections, scan ports. nc can be used for
network connections, port scanning, and data
transfer.
Sold to
dinish1993@gmail.com
tcpdump: Packet Analyzer
Dive into network traffic. tcpdump captures and
analyzes network packets for troubleshooting.
Sold to
dinish1993@gmail.com
nmap: Network Exploration
Port scanning and service discovery. nmap scans
networks for open ports, services, and operating
systems.
Sold to
dinish1993@gmail.com
ip rule: Advanced Routing
Control network routing. ip rule manages routing rules
for advanced network configurations.
Sold to
dinish1993@gmail.com
bridge: Network Bridge
Management
Connect networks together. bridge manages network
bridge interfaces for creating virtual networks.
Sold to
dinish1993@gmail.com
ethtool: Interface Settings
Fine-tune your network cards. ethtool displays and
modifies network interface settings, such as speed
and duplex.
Sold to
dinish1993@gmail.com
dig: Query DNS Records
Troubleshoot DNS issues. dig queries DNS records for
domains, providing information like IP addresses and
mail servers.
Sold to
dinish1993@gmail.com
lsblk: List Block Devices
See your disks. lsblk displays information about block
devices, like hard drives and partitions.
Sold to
dinish1993@gmail.com
blkid: Block Device
Attributes
Find UUIDs and file systems. blkid displays attributes
of block devices, like UUIDs and file system types.
Sold to
dinish1993@gmail.com
mkfs.ext4: Format Partitions
Create ext4 file systems. mkfs.ext4 formats a
partition with the ext4 filesystem.
Sold to
dinish1993@gmail.com
tune2fs: Adjust ext
Filesystems
Tune your file systems. tune2fs adjusts tunable
parameters on ext-based filesystems.
Sold to
dinish1993@gmail.com
mount -o loop: Mount ISOs
Mount ISO images without burning. Use mount -o
loop to mount ISO or disk images.
Sold to
dinish1993@gmail.com
fsck: Filesystem Check &
Repair
Fix disk errors. fsck checks and repairs filesystem
errors on a partition.
Sold to
dinish1993@gmail.com
parted: Advanced
Partitioning
Powerful disk partitioning. parted is an advanced tool
for creating, resizing, and managing disk partitions.
Sold to
dinish1993@gmail.com
xfs\_info: XFS Filesystem
Details
Get XFS information. xfs_info displays detailed
information about an XFS filesystem.
Sold to
dinish1993@gmail.com
btrfs: Manage Btrfs
Filesystems
Next-gen filesystem management. btrfs is a modern
filesystem with advanced features like snapshots and
copy-on-write.
Sold to
dinish1993@gmail.com
cryptsetup: Encrypted
Volumes
Protect your data. cryptsetup sets up encrypted LUKS
volumes for secure storage.
Sold to
dinish1993@gmail.com
nohup: Immune to Hangups
Run commands that survive terminal closure. nohup
runs commands immune to hangups, redirecting
output to a file.
Sold to
dinish1993@gmail.com
timeout: Run with Time
Limit
Prevent runaway processes. timeout runs a command
with a specified time limit.
Sold to
dinish1993@gmail.com
nice: Lower Priority
Be a good neighbor. nice runs a command with a
reduced scheduling priority.
Sold to
dinish1993@gmail.com
renice: Change Priority
Adjust running processes. renice changes the priority
of a running process.
Sold to
dinish1993@gmail.com
fg: Foreground Job
Bring a background job to the foreground. fg brings a
background job to the active terminal.
Sold to
dinish1993@gmail.com
bg: Background Job
Send a job to the background. bg resumes a
suspended job in the background.
Sold to
dinish1993@gmail.com
disown: Detach from Shell
Remove jobs from the job table. disown removes jobs
from the shell's job table.
Sold to
dinish1993@gmail.com
strace: System Call Tracer
Understand process behavior. strace traces system
calls of a running process.
Sold to
dinish1993@gmail.com
ltrace: Library Call Tracer
Trace library function calls. ltrace traces library
function calls of a process.
Sold to
dinish1993@gmail.com
schedtool: CPU Scheduling
Policies
Control process scheduling. schedtool sets CPU
scheduling policies for processes.
Sold to
dinish1993@gmail.com
setfacl: Manage ACLs
Fine-grained permissions. setfacl manages access
control lists (ACLs) for files and directories.
Sold to
dinish1993@gmail.com
getfacl: View ACLs
See who has access. getfacl views ACLs for files and
directories.
Sold to
dinish1993@gmail.com
auditctl: Configure Auditing
Track system events. auditctl configures the Linux
Audit framework for security monitoring.
Sold to
dinish1993@gmail.com
ausearch: Search Audit Logs
Analyze audit data. ausearch searches audit logs for
specific events or users.
Sold to
dinish1993@gmail.com
pam\_tally2: Failed Login
Lockout
Prevent brute-force attacks. pam_tally2 locks/unlocks
user accounts after failed login attempts.
Sold to
dinish1993@gmail.com
firewalld: Dynamic Firewall
Manage firewall rules. firewalld dynamically manages
firewall rules, making it easy to allow or block traffic.
Sold to
dinish1993@gmail.com
semanage: SELinux Policies
Configure SELinux policies. semanage manages
SELinux policies for enhanced security.
Sold to
dinish1993@gmail.com
restorecon: SELinux
Contexts
Fix SELinux issues. restorecon restores SELinux
contexts on files, ensuring correct security labels.
Sold to
dinish1993@gmail.com
fail2ban-client: Intrusion
Prevention
Ban malicious IPs. fail2ban-client manages Fail2Ban
for intrusion prevention, automatically banning IPs
that show malicious behavior.
Sold to
dinish1993@gmail.com
rkhunter: Rootkit Scanner
Scan for rootkits. rkhunter scans for rootkits and
suspicious activity on a system.
Sold to
dinish1993@gmail.com
expect: Automate
Interactions
Automate interactive applications. expect automates
interactive applications, scripting responses to
prompts.
Sold to
dinish1993@gmail.com
awk: Text Processing Power
Process and manipulate text. awk is a powerful tool
for processing and manipulating text in scripts.
Sold to
dinish1993@gmail.com
jq: JSON Command Line Tool
Parse and manipulate JSON. jq parses and
manipulates JSON data from the command line.
Sold to
dinish1993@gmail.com
htop vs top
htop is similar to top, but allows you to scroll vertically
and horizontally, and it shows you the full command
lines of processes.
Sold to
dinish1993@gmail.com
Netcat: Port Scanning
Test network connections. Use netcat for port
scanning and verifying network services are running.
Example: nc -zv host port
Sold to
dinish1993@gmail.com
tcpdump: Capture Filters
Be more specific. Use tcpdump filters (e.g., port, host)
to capture only relevant network traffic. tcpdump -i
eth0 port 80
Sold to
dinish1993@gmail.com
strace: Focus on Specific
Calls
Narrow down your search. strace can filter system
calls to focus on specific areas of process behavior.
strace -eopen ls
Sold to
dinish1993@gmail.com
jq: Complex
Transformations
JSON transformations. jq can perform complex
transformations on JSON data, not just simple
extraction.
Sold to
dinish1993@gmail.com
Linux Command Mastery!
You've explored advanced Linux commands for system
monitoring, networking, security, and more. Keep learning!
Sold to
dinish1993@gmail.com