$ for i in {1..20}; do fortune -w ; sleep 3; clear; done
if you are a slow reader adjust the sleep time accordingly.
Today I was struggling to work on python virtual environment and realised that running a Python Virtual env in windows …
Set up with github. (Very good tutorial from Lifehacker)How the Heck do i use Github To remove the origingit remote …
$ for i in {1..20}; do fortune -w ; sleep 3; clear; done
if you are a slow reader adjust the sleep time accordingly.
$ alias timer='export ts=$(date +%s);p='\''$(date -u -d @"$(($(date +%s)-$ts))" +"%H.%M.%S")'\'';watch -n 1 -t banner $p;eval "echo $p"'
There are options with ps itself for better filter options, than may be doing it with grep, worth a try.
$ ps -LF -u user
use the other folder permission as reference. Here, changing the permission of all files in folder to the permission similar to the parent folder.
chown –reference=. ./*
easier than editing .ssh/authorized_keys file.
ssh-copy-id [email protected]
find the zombie processes.
ps aux | awk ‘$8 == “Z” { print }’
find the package name of the $file from the apt repository.
apt-cache search $file
$ find . -type f -print0 | xargs -0 stat -c’%Y :%y %12s %n’ | sort -nr | cut -d: -f2- | head
Will go through all the files in the directory specified, uses `stat` to print out last modification time, then sorts numerically in reverse, then uses cut to remove the modified epoch timestamp and finally head to only output the last 10 modified files.