Overlooked
27 Aug 2024
`apropos` is an overlooked Linux command
Search for Linux command that does what you need #
Sometimes the challenge of using the Linux command line is knowing what commands you need to do certain things.
The apropos
command lets you search the available commands by matching key words.
|
|
The command checks all of the installed man pages and package descriptions, however there are circumstances where this could leave out some relevant commands.
10 Feb 2021
There many GNU/Linux command line tools that provide continuously updated statistics or information like iotop
, nload
, and top
. However, it is often necessary to see the output of another simple command or complex chain of tools, updated in real-time.
watch
is a Linux command that does just that, and by doing so, is incredibly useful for continuously monitoring the output of any Linux terminal command. Usage of the watch
command is incredibly simple, as the following example monitoring the currently running tsp
task in the task-spooler queue demonstrates.
17 Nov 2020
Overlooked Tools: task-spooler
Sometimes sophisticated job queue and cluster systems are overkill on office or individual PCs, especially for long lists of batch processing jobs that use comparatively few resources.
Use task-spooler to queue commands on Linux and control the number of simultaneous jobs for an easy way to parallelize a list of batch jobs! This tool is a great complement to some other command line workhorses like at
and batch
.
Task-spooler is not usually installed by default on Linux systems. It can be built by scratch after getting the source from https://vicerveza.homeunix.net/~viric/soft/ts/ or on Ubuntu (maybe other Debian based OS’s) you can use apt:
16 Nov 2020
If you have ever had a need to move the output of a Linux console command to your clipboard, xclip
is the solution!
To copy a file’s contents to the standard “ctl+c/v” clipboard buffer issue you can following this command:
|
|
The most useful feature is reading from a stdin pipe:
|
|
…and then your ready to paste into an email or Slack chat.
1 Jan 0001
If you find you are using commands like sleep
to run a one-off task at a specific time, then meet the GNU at
command.
at
will allow you to specify a time to run a specific command, and accepts a wide range of different formats including “now + 4 hours”, “noon”, and “next tuesday”. The command will read commands from stdin or using the -f
to specifiy a file to be executed using the default /bin/sh
.