Check These Out
This will enable the possibility to navigate in the history of the command you type with the arrow keys, example "na" and the arrow will give all command starting by na in the history.You can add these lines to your .bashrc (without &&) to use that in your default terminal.
*I run this with byobu as as a custom status bar entry that runs every 10 seconds by putting it in a script here:
$ .byobu/bin/10_update_windows
There's no output to stdout, so nothing is displayed on the status bar.
*Presumes that #{pane_title} is set to the hostname or prompt containing the host name. In my case, it's in this format:
$ $USER@$HOSTNAME:$PWD
The sed commands may need to be modified if your pane_title is different.
*If you want to strip out a common part of a hostname, add the following before '| uniq'
$ -e 's/[COMMON PART]//'
I use that to strip out the domain of the servers I connect to, leaving the subdomain.
Using this command you can track a moment when usb device was attached.
Copies a directory structure from /home/ to /backups/home (notice that the destination does not have a trailing slash)
better integration.
works on all Unices
works one bash and ksh.
This script will run each time you boot up.The script must be in /etc/init.d directory.
This is the fastest method to search the Debian package database.
Requires the dlocate package. The dlocate db updates periodically, but you may force an update with
# dlocate-update
shortest alternative without the speed-o-meter"xclip large.xml"
"xclip -o" to get the clipboard content, alternatively [shift key] + insert or middle button of your mouse.
I have a bash alias for this command line and find it useful for searching C code for error messages.
The -H tells grep to print the filename. you can omit the -i to match the case exactly or keep the -i for case-insensitive matching.
This find command find all .c and .h files
Example:
$ runonchange /etc/nginx nginx -t
Ignores vim temp files. Depends on 'inotify-tools' for monitoring of file changes. Alternative to tools like 'entr', 'watchr'.