Check These Out
Install the Linux kernel headers for currently running kernel version on Debian-based systems via apt-get
Using this command you can track a moment when usb device was attached.
Using this command you can track a moment when usb device was attached.
Returns the current price of a troy ounce of gold, in USD. Requires the "jq" JSON parser.
It's allways strange for me to see sed and awk in the same command line if you can avoid it
creates associative array from apache logs, assumes "combined" log format or similar. replace awk column to suit needs. bandwidth per ip is also useful. have fun. I haven't found a more efficient way to do this as yet. sorry, FIXED TYPO: log file should obviously go after awk, which then pipes into sort.
#Alias
alias perm="stat -c '%n %U:%G-%a'"
#Function
perm() { for ll in $@; do stat -c "%n %U:%G-%a" "$ll"; done; }
We use `-not -name ".*"` for the reason we must omit hidden files (which unnecessary). We can only show up total lines like this:
$ find * -type f -not -name ".*" | xargs wc -l | tail -1
Only tested on Linux Ubunty Hardy. Works when file names have spaces. The "-maxdepth 2" limits the find search to the current directory and the next one deeper in this example. This was faster on my system because find was searching every directory before the current directory without the -maxdepth option. Almost as fast as locate when used as above. Must use double quotes around pattern to handle spaces in file names. -print0 is used in combination with xargs -0. Those are zeros not "O"s. For xargs, -I is used to replace the following "{}" with the incoming file-list items from find. Echo just prints to the command line what is happening with mv. mv needs "{}" again so it knows what you are moving from. Then end with the move destination. Some other versions may only require one "{}" in the move command and not after the -I, however this is what worked for me on Ubuntu 8.04. Some like to use -type f in the find command to limit the type.