dmidecode | grep "Product Name"cat /proc/cpuinfo | grep name | awk -F: '{print $(NF)}' | uniq -cView a certain user's processes ref
top -U [username]Linux' memory cache manager was located in localhost:11211 by default, use telnet to enter it.
$ telnet localhost 11211After system says ok, insert:
flush_allthen type quit to leave talnet mode.
Empty the contents of a file ref
$ truncate -s 0 yourFileName
Find which ports are being used now ref
- find all
$ netstat -tulpn- find a specific port
$ netstat -tulpn | grep :80Archive hidden files or directories (dot files)
- Use command below to enable dot file including
$ shopt -s dotglob
- Use command below to roll back to default setting
$ shopt -u dotglob