Difference between revisions of "System Setup & Administration"

From Nearline Storage
Jump to navigation Jump to search
m
m
Line 3: Line 3:
 
* Useful commands:
 
* Useful commands:
 
** Unpack an RPM: <code>rpm2cpio myrpmfile.rpm | cpio -idmv</code>
 
** Unpack an RPM: <code>rpm2cpio myrpmfile.rpm | cpio -idmv</code>
** Finding large files - "du -axS | sort -r -n -k 1,1 | less"
+
** Finding large files - <code>du -axS | sort -r -n -k 1,1 | less</code>
** List files by size - "du -xmS | sort -g"
+
** List files by size - <code>du -xmS | sort -g</code>
 
** Identify processes using files or sockets - <code>fuser</code>
 
** Identify processes using files or sockets - <code>fuser</code>
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Revision as of 14:56, 31 December 2019