Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tech_notes:linux_commands [2025-05-24 Sat wk21 15:53] baumkptech_notes:linux_commands [2025-05-24 Sat wk21 17:41] (current) – [ncdu] baumkp
Line 1: Line 1:
 +{{tag>CLI Commands}}
 ======Linux CLI Commands====== ======Linux CLI Commands======
 +Various Linux CLI (Command Line Interface) Commands with examples and grouped by type
 +
 +=====File System=====
 +
 +====check file system size====
 +
 +===du===
 +Estimate file space usage
 +  *''du -hd1 /file_path''  lists and summaries directories sizes under /file_path 1 directory deep, where:
 +    *''-d'' set the reporting depth flag
 +    *''-h'' set human readable format
 +  *''du -s /tmp /var'' lists the summary of directories /var and /tmp only, where:
 +    * ''-s'' set summaries 
 +===ncdu===
 +ncdu is a 'smart' version of nu.  It needs to be specifically installed, e.g. ''sudo apt install ncdu''.
 +  *ncdu
 +
 +===df===
 +df - report file system space usage
 +  * ''df -h'' prints file system and spage usage in human readable format
 +
 +===duf===
 +duf - disk usage / Free utility, an updated version of df utility.  It needs to be specifically installed, e.g. ''sudo apt install duf''.
 +  * ''duf''
 +
 +=====Devices=====
 +
 +====lshw====
 +Command to list hardware configuration parameters.
 +  *''sudo lshw -short'' list hardware in short form.
 +  *''sudo lshw -c cpu'' lists the cpu hardware, the following device types can be listed
 +    *system
 +    *bridge
 +    *memory
 +    *processor
 +    *address
 +    *storage
 +    *disk
 +    *tape
 +    *bus
 +    *network
 +    *display
 +    *input
 +    *printer
 +    *multimedia
 +    *communication
 +    *power
 +    *volume
 +    *generic
 +=====Networking Specific=====
 +
 +
 +<- tech_notes:programs|back ^ tech_notes:index|Start page ^ tech_notes:alpine|next->