User Tools

Site Tools



= WC - Word Count =

Count lines or words. ls | wc -l //Count the number of files in a directory

List, Print 1st or n'th column, sort, unique, count entries: last | awk '{ print $1}' | sort | uniq | wc -l


Sort by Memory Usage: ps aux | sort -n -k4 //think of k meaning sort by column number. //another method just for ps: ps aux –sort:rss //explaination for memory usage:

man wc for other usage.

wc.txt · Last modified: 2022/07/19 21:13 by