Check These Out
I wanted to view only executables installed by a package. This seemed to work.
There's got to be easier way, please share.
Note:
(1) Replace iptables with the package name of your interest
(2) The command will trash any existing environment variable named 'lst'
(3) Instead if you are interested in viewing just .ko or .so files installed by this package, then
that would be easy:
$ dpkg -L iptables | grep "\.[sk]o$"
Using this command you can track a moment when usb device was attached.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
This invokes tar on the remote machine and pipes the resulting tarfile over the network using ssh and is saved on the local machine. This is useful for making a one-off backup of a directory tree with zero storage overhead on the source. Variations on this include using compression on the source by using 'tar cfvp' or compression at the destination via
$ ssh user@host "cd dir; tar cfp - *" | gzip - > file.tar.gz
Print a row of characters across the terminal. Uses tput to establish the current terminal width, and generates a line of characters just long enough to cross it. In the example '#' is used.
It's possible to use a repeating sequence by dividing the columns by the number of characters in the sequence like this:
$ seq -s'~-' 0 $(( $(tput cols) /2 )) | tr -d '[:digit:]'
or
$ seq -s'-~?' 0 $(( $(tput cols) /3 )) | tr -d '[:digit:]'
You will lose chararacters at the end if the length isn't cleanly divisible.
Would this command line achieve the desired function? My CLI knowledge is not great so this could certainly be wrong. It is merely a suggestion for more experienced uses to critique. Best wishes roly :-)
Convert some SVG files into PNG using ImageMagick's convert command.
Run the conversions in parallel to save time.
This is safer than robinro's forkbomb approach :-)
xargs runs four processes at a time -P4