Timeline for aix list by climagic
-
ohssh # Out of band shell to help recover a system after screwing up firewall rules or something like that. #fakecommand
-
Unix Bands: GNUs Not U2, UINXS, Smooth Operator from Hell, Jay-Zsh, Symlinkin Park, R Sync # Thx @mister_ozinski & @iiSeymour
-
Malicious hacker = Looks to exploit you out of your precious resources. Sales people = same
-
If running a command twice destroys all your data, try it a third time to really screw shit up.
-
cd . # Might seem useless, but if your shell's CWD is in a directory that was deleted/recreated, this will put you in the new directory.
-
apt-file search /usr/bin/apxs2 # On Debian, find out which non-installed package provides a file. Need to install apt-file package first.
-
topcount() { sort | uniq -c | sort -rn | head -n ${1:-10}; } # Make a top instance counting function that you can pipe through. Default=10
-
man xsel | sed -n '/DESCRIPTION/,/Input options/p' # Read this and you may better understand the mess that is X server select/copy/paste.
-
mv -v www.example.com{,-oldsite} && mv -v {dev,www}.example.com # Swap out the old website and replace with the dev site in one move.
-
exec -a vim nethack # Now if your boss runs ps aux on your system, they will think you're working, not playing a game.
-
exec su - $USER # Restart your login again with same $SHLVL in place. Allows new group assignments to take effect.
-
!tar:p # Print out the last tar command used in your history. Then type !tar to run it again.
-
sshfs user@remotehost:/remotedir mydir # sshfs is a nice util that uses FUSE and SSH to mount a remote directory as a local one.
-
777 are great numbers in Vegas, but horrible numbers on your files and directories.
-
http://ur1.ca/dy9i0 # A site that performs static analysis of your shell code and shows warnings and errors inline. Thx @kultapanda
-
egrep -v "^#|^$" httpd.conf # display the httpd.conf file contents and exclude blank lines and lines that start with comment character.
-
paste <(cal 2013) <(cal 2014) # Look at the full year calendar for 2013 and 2014 side by side.
-
On that last one I should have clarified, it counts number of lines with URLs, not total URLs if there are more than one per line.
-
for f in * ; do l=$( grep http:// "$f" | wc -l ) ; echo "$l $f" ; done > urls-in-files-count.txt # Count number of URLs in each file.
-
o="";while [[ -z $o ]];do o=$(curl -s example\.com|grep 'Some text you are expecting eventually' );sleep 5m;done # Check website for text.