ps aux | awk '{print $6/1024 " MB\t\t" $11 " " $12}' | sort -n | tail -10
Alias it with:
alias mempigs="ps aux | awk '{print \$6/1024 \" MB\t\t\" \$11 \" \" \$12}' | sort -n | tail -10"
I regularly have directories of files I want to back up in case of disaster. Usually these are files that change often, and I only want to keep recent versions in case I want to revert or recover changes. (Git? git, who?)
I have used this script over and over as a simple way to archive a directory to a location with a date-stamped filename. It also cleans up after itself by deleting files older than X days. I stick it in CRON and let it run on a schedule and I always have an archive of the last X days of the files in my directory.
#!/usr/bin/env bash
#===============================================================================
#
Zandronum brings classic Doom into the 21st century, maintaining the essence of what has made Doom great for so many years and, at the same time, adding new features to modernize it, creating a fresh, fun new experience.
wget -O - http://debian.drdteam.org/drdteam.gpg | sudo apt-key add -
from Problem with home, end and del keys under zsh
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[5~" beginning-of-history
bindkey "\e[6~" end-of-history
bindkey "\e[3~" delete-char
bindkey "\e[2~" quoted-insert
bindkey "\e[5C" forward-word
bindkey "\eOc" emacs-forward-word
directory: /mnt/chawley/Music | |
library: /home/chawley/musiclibrary.blb | |
import: | |
# write metadata to music files | |
write: yes | |
# move imported files from source to the music directory | |
move: yes | |
copy: no |