Check These Out
Much better alternatives - grep-alikes using perl regexps. With more options, and nicer outputs.
Per default, linux/unix shells are configured with a width of 80 characters.
If you like to edit a phrase or string on a line with more than 80 characters it might take long to go there (for example a line with 1000 characters and you like to edit the 98th word which is character 598-603).
Maybe you might wish to use 78 characters, because if you forward the text via mail and the text will be quoted (2 extra characters at the beginning to the line "> "), you use 80 characters, otherwise 82, which are lame.
Whenever we are only interested in difference between two numbers and not the positive/negative values we can use this in script.
Change the -p argument for the port number. See "man nmap" for different ways to specify address ranges.
Based on capsule8 agent examples, not rigorously tested
Gives you a list for all installed chrome (chromium) extensions with URL to the page of the extension.
With this you can easy add a new Bookmark folder called "extensions" add every URL to that folder, so it will be synced and you can access the names from every computer you are logged in.
------------------------------------------------------------------------------------------------------------------
Only tested with chromium, for chrome you maybe have to change the find $PATH.
Clone a root partition. The reason for double-mounting the root device is to avoid any filesystem overlay issues. This is particularly important for /dev.
Also, note the importance of the trailing slashes on the paths when using rsync (search the man page for "slash" for more details). rsync and bash add several subtle nuances to path handling; using trailing slashes will effectively mean "clone this directory", even when run multiple times. For example: run once to get an initial copy, and then run again in single user mode just before rebooting into the new disk.
Using file globs (which miss dot-files) or leaving off the trailing slash with rsync (which will create /mnt/target/root) are traps that are easy to fall into.
a bit shorter, parenthesis not needed but added for clarity