lugnasad.eu

command-not-found.com

🐧💡 GNU/#Linux tip. The online application command-not-found.com helps you to install missing commands and gives you first examples of use.
https://command-not-found.com/

Example with Emacs:
https://command-not-found.com/emacs

#

finished.sh notification

🐧💡 GNU/Linux tip:
$ notify-send 'Summary' ['Message']
send a notification.

Useful to be informed when a long task is finished, for example a heavy compilation:
$ make; notify-send 'Message'

finished.sh is a little script to make that easier, and to condition the display according to the return code of the previous executed task.
🧰 https://bitbucket.org/OPiMedia/etoolbox/src/master/finished/

$ make; finished.sh --return $? 'make finished'

Set the following alias to use it directly:
$ alias finished='finished.sh --return $?'
$ make; finished 'make finished'

There are options to play a sound, change the icon…

#

🐧🧰 proc_deleted (Bash)

Bash command to list processes that have some deleted files, and to allow to kill them.
https://bitbucket.org/OPiMedia/proc_deleted-bash/

More precisely, takes list of /proc/*/fd/* with mention "(deleted)", filters it by patterns, extracts PIDs, and then displays the list and PIDs. Options allow to kill them.

Lists all /proc/*/fd/* with mention "(deleted)" and lists their PIDs:
$ proc_deleted.sh

Lists lines that match regular expressions tmp *and* #[0-5], and lists their PIDs:
$ proc_deleted.sh tmp '#[0-5]'

# # #
Later posts Earlier posts

Ce site web utilise des cookies. Si vous continuez Γ  naviguer sur ce site Web, vous acceptez l'utilisation de cookies.