Ubuntu-L5-Field Marshal
A. File & Filesystem (Advanced)
basename– Extract filename from pathdirname– Extract directory from pathrealpath– Resolve absolute pathreadlink– Print symbolic link targetstatfs– Filesystem statisticsrename– Batch rename fileschattr– Change file attributeslsattr– List file attributesstatx– Extended file statssyncfs– Sync filesystem
B. Disk, Storage & Hardware
blkid– Block device attributesfindmnt– List mounted filesystemsmountctl– Control mountsfsck– Filesystem checktune2fs– Tune ext filesystemsresize2fs– Resize ext filesystembadblocks– Check disk for bad sectorshwinfo– Hardware infolsusb– USB deviceslspci– PCI devices
C. Networking (Advanced)
ip route– Routing tableip neigh– ARP tabletraceroute– Network path tracemtr– Traceroute + pingtcpdump– Packet capturenmap– Network scanningethtool– Network interface settingsnmcli– NetworkManager CLIwhois– Domain lookuparp– Address resolution table
D. Process, Performance & CPU
nice– Set process priorityrenice– Change priorityhtop– Interactive process vieweratop– Advanced system monitorpidstat– Per-process statsperf– Performance analysisuptime– System loadwatchdog– Monitor system healthschedtool– Scheduler controltaskset– CPU affinity
E. Logs, Debugging & Tracing
journalctl -u– Logs by servicecoredumpctl– Core dump analysisstrace -p– Attach syscall tracerltrace– Library call tracingpmap– Process memoryprocinfo– System infodstat– Resource statisticsvmstat -s– Memory summaryfree -w– Detailed memoryuptime -p– Pretty uptime
F. Text Processing (Expert)
paste– Merge file columnsjoin– Join filesnl– Number linesfmt– Text formatterfold– Line wrappingexpand– Tabs to spacesunexpand– Spaces to tabsiconv– Encoding conversiondos2unix– Line ending fixunix2dos– Windows line endings
G. Shell & Environment Mastery
bind– Readline bindingscomplete– Bash autocompletioncompgen– Generate completionsshopt– Shell optionsexec– Replace shelldisown– Detach jobsjobs– Background jobsfg– Foreground jobbg– Resume background jobwait– Wait for process
H. Users, Groups & Security
useradd– Create userusermod– Modify useruserdel– Delete usergroupadd– Create groupgroups– Show group membershipspasswd– Change passwordfaillog– Login failure logslastlog– Last login infonewgrp– Switch groupsu– Switch user
I. Scheduling, Boot & Power
crontab -l– List cron jobsatq– List at jobsatrm– Remove at jobshutdown -r– Reboot schedulewall– Broadcast messagewrite– Message userlogin– Login promptlogout– End sessionhalt– Stop CPUreboot -f– Force reboot
J. Packaging, Builds & System
dpkg -l– List packagesdpkg -i– Install .debapt-cache policy– Package versionsapt-key– Repository keysadd-apt-repository– Add repoldd– Shared librariesldconfig– Linker cacheuname -r– Kernel versionlsmod– Loaded kernel modulesmodprobe– Load kernel module
Last updated