Some tips for the UNIX command line
Already a year ago, I was telling you about Basic commands to use the shell on your Raspberry Pi (or any other UNIX-like system). Today I want to add more specific commands or misjudged that could simplify your life.
UNIX commands are countless. Some more or less easy to use or more or less practical. Looking for information I came across an article by Kristof Kovacs on the practical controls but unknown. Having found the idea very good, I share with you the ones that seem to be useful. The name of the package to install is given just under the command if you want to test it.
htop
package : htop
This is another representation of the top tool. More Visual with search functions, display as tree, htop is also more greedy resource with 10% memory occupied
atop
package : atop
Yet another Visual representation for the top command which has each refresh gives only running processes. This command is ideal for tracking consumption (CPU, RAM, etc.) ongoing processes
slurm
package : slurm
Command to monitor a network with input/output interface, etc.
dstat
package : dstat
This tool is the consolidation of information on the uses of the different resources of the system such as vmstat, iostat and ifstat. The information is detailed and quickly readable. Many plugins are available to enrich the data (wifi, NFS, squid, MySQL, etc.)
ttyrec
package : tierce
Allows the recording of your sessions in console mode. The timing (in milliseconds) is also recorded to render using the ttyplay command, your records. To complete your record, you must leave the shell that was created.
An ideal control to save the tutorials so that you can replay them at home ? 🙂mtr
package : mgr
Tool that combines ping and traceroute. Statistics on each bounce are displayed.
iftop
package : iftop
To know all traffic inbound and outbound on your interfaces. Handy to know what is happening on the network.
iptraf
package : iptraf
Even more thorough and using an interface to select what you want to monitor, iptraf allows you to track your bandwidth usage
lftp
package : lftp
A tool to make the FTP command line, easy to use in scripts, can resume interrupted downloads, with multiple connections, etc.
ack
package : ack-grep
A tool replacing grep with highlighting, filtering on files or their extensions.
cloc
package : cloc
Ideal for counting lines of code in your files (Even archived)
Thanks to Kristof for making me discover these commands !