Check These Out
Show apps that use internet connection at the moment.
Can be used to discover what programms create internet traffic. Skip the part after awk to get more details, though it will not work showing only unique processes.
This version will work with other languages such as Spanish and Portuguese, if the word for "ESTABLISHED" still contain the fragment "STAB"(e.g. "ESTABELECIDO")
We all know...
$ nice -n19
for low CPU priority.
$ ionice -c3
for low I/O priority.
nocache can be useful in related scenarios, when we operate on very large files just a single time, e.g. a backup job. It advises the kernel that no caching is required for the involved files, so our current file cache is not erased, potentially decreasing performance on other, more typical file I/O, e.g. on a desktop.
http://askubuntu.com/questions/122857
https://github.com/Feh/nocache
http://packages.debian.org/search?keywords=nocache
http://packages.ubuntu.com/search?keywords=nocache
To undo caching of a single file in hindsight, you can do
$ cachedel
To check the cache status of a file, do
$ cachestats
instead of writing:
if [[ "$1" == "$2" ]]; then
echo "$1 is equal $2"
else
echo "$1 differs from $2"
fi
do write:
[[ "$1" == "$2" ]] && echo "$1 is equal $2" || echo "$1 differs from $2"
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Necessary for fsck for example.
The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount command doesn't read fstab (or mtab) only when a device and dir are fully specified. After this call all old mount options are replaced and arbitrary stuff from fstab is ignored, except the loop= option which is internally generated and maintained by the mount command.
It does not change device or mount point.
With GNU chmod at least it is that simple.
the "delay" utility is an invaluable tool for me. with gnu-screen it allows you to schedule something and have it run and output to the current terminal, unlike "at".
You can also use it like "sleep" with seconds and also with date:
delay until 13:33 friday && echo test
get it from: http://onegeek.org/~tom/software/delay/current/delay.c
(author: Tom Rothamel)
greps for search word in directory and below (defaults to cd).
-i case insensitive
-n shows line number
-H shows file name
defines a handy function for quick calculations from cli.
once defined:
$ ? 10*2+3