find . -ctime -3# created in the past 3 daysfind . -ctime +3# older than 3 daysfind . -ctime 3# created exactly 3 days backfind . -ctime +3 -ctime -5# created 3 – 5 days backfind . -newer /tmp/somefile# see somefile’s timestamp and show files newer than it- works great in conjunction with:
touch 0607090016 /tmp/somefile#i.e. 7th june, 9:00 am, 2016find . -maxdepth 1 -type d -ctime +38 -exec rm -rf {} \;delete all folders older than 38 days back.- don’t use atime much: every directory access changes its atime, so when find traverses through it, the inode’s atime entry gets updated.
Month: July 2019
GNU Screen & Tmux notes
GNU/Screen splitting windows
C-a V or C-a |split the screen verticallyC-a Xremove/detach the current splitC-a Ssplit horizontallyC-a tabcycle between windows
Tmux keybindings
Ctrl-b %(Split the window vertically)Ctrl-b :“split-window” (Split window horizontally)Ctrl-b o(Goto next pane)Ctrl-b q(Show pane numbers, when the numbers show up type the key to goto that pane)Ctrl-b {(Move the current pane left)Ctrl-b }(Move the current pane right)
And here’s my .tmux.conf
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -g default-terminal "xterm-256color"
set -g history-limit 10000
set -g set-titles-string "#T"
unbind %
bind | split-window -h
bind - split-window -v
Look up files that are deleted but not reclaimed
sudo /usr/sbin/lsof | grep deleted
- Space will not be freed for the files there.
- Restart those offending daemons to actually free the space up.
If you don’t have lsof, just use this:
find /proc/*/fd -ls | grep '(deleted)'
Git – reverting a reverted commit
If you’ve reverted a recent commit with:
git reset HEAD^
You can undo the revert with this:
git reset HEAD@{1}
openssl – Remove a passphrase from a private key
openssl rsa -in privateKey.pem -out newPrivateKey.pem
The Art of the Infinite – Review

This is the kind of book I wish I’d read 20 years back.
The Kaplans cover a lot of ground, so the book is densely packed with remarkable insights. Although most of the topics (algebra, geometry) were covered in my school syllabus in my younger days, the difference is in how it bridges vast areas of mathematics together.
A seemingly insurmountable problem is shown first. Then some remarkable piece of magic happens. And the clouds clear and light shines through.
A book like this gives a glimpse of the awe-inspiring structure and symmetry in the Universe that mathematicians create in their minds.