
Terminal - All commands - 10,707 results
echo lowercaseword | tr '[a-z]' '[A-Z]'
This is sample output - yours may be different.
tail -F some.log | perl -ne 'print time(), "\n";' | uniq -c
This is sample output - yours may be different.
cat file.gz.cpt *[a-z] | ccdecrypt -k yoursecretpassword | tar -xzf -
This is sample output - yours may be different.
tar czf - /directory/to/tar | ccrypt -k yourpassword | split -b50m - /final/encrypted.cpt
This is sample output - yours may be different.
This is sample output - yours may be different.
1.|-- 10.0.0.2 0.0% 10 0.3 0.3 0.2 0.6 0.1
2.|-- Vigor.router 0.0% 10 0.6 0.5 0.3 0.8 0.1
3.|-- 82-118-126-121.static.dsl 0.0% 10 1.3 1.2 1.1 1.3 0.1
4.|-- ae0-345.ndc-core2.uk.timi 0.0% 10 1.3 2.5 1.3 12.3 3.4
5.|-- lonap1.sov-bdr.uk.timico. 0.0% 10 5.4 6.0 5.3 8.0 0.9
6.|-- google1.lonap.net 0.0% 10 5.9 5.4 5.3 5.9 0.2
7.|-- 209.85.255.76 0.0% 10 5.6 14.4 5.6 91.6 27.1
8.|-- 209.85.253.92 0.0% 10 6.1 6.1 6.0 6.2 0.1
9.|-- 72.14.232.134 0.0% 10 11.7 11.8 11.6 12.4 0.3
10.|-- 209.85.252.83 0.0% 10 11.5 11.5 11.4 11.8 0.1
11.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
12.|-- wg-in-f105.1e100.net 0.0% 10 11.5 11.4 11.3 11.5 0.1
In the sample output I used google.com.
git-createrepo() { repos_path='/srv/git/'; mkdir $repos_path$1; cd $repos_path$1; git init --bare; echo "Repository location: ssh://$USER@`cat /etc/HOSTNAME``pwd`"; cd -; }
This is sample output - yours may be different.
Initialized empty Git repository in /srv/git/mygit4/
Repository location: ssh://user@hostname/srv/git/mygit4
Creates a git repository in a predefined location.
This is sample output - yours may be different.
x220:/tmp/foo$ inotifywait -m -r .
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
./ CREATE bar
./ OPEN bar
./ ATTRIB bar
./ CLOSE_WRITE,CLOSE bar
Instead of looking through `lsof` results, use inotifywait!
ps aux | sort -n -k2 | awk '{if ($2 < 300) print($0)}'
This is sample output - yours may be different.
Display all pid less the 300 processes info
watch 'ls -tr1 | tail -n1 | xargs tail'
This is sample output - yours may be different.
Watches for file modifications in the current directory and tails the file.
This is sample output - yours may be different.
$ echo -e "1\n2\n3" | tac
3
2
1
ls *.jpg | xargs -n1 -i cp {} /external-hard-drive/directory
This is sample output - yours may be different.
This is sample output - yours may be different.
This is sample output - yours may be different.
awk '!($0 in array) { array[$0]; print }' temp
This is sample output - yours may be different.
sed -n '1!G;h;$p' techie.txt
This is sample output - yours may be different.
find -iname "MyCProgram.c" -exec md5sum {} \;
This is sample output - yours may be different.
grep -A 3 -i "example" demo_text
This is sample output - yours may be different.
This is sample output - yours may be different.
find . -name .git -print0 | while read -d $'\0' g; do echo "$g"; cd "$g"; git gc --aggressive; cd -; done
This is sample output - yours may be different.
git gc should be run on all git repositories every 100 commits. This will help do do so if you have many git repositories ;-)
ps aux | awk '/chrome/ {s+=$6}END{print s/1024}';
This is sample output - yours may be different.
svg2png(){ png="${1%.*}.png"; inkscape --export-png="$png" --without-gui "$1" && pngcrush -brute -rem alla -rem text "$png" "$png.new" && mv "$png.new" "$png";}
This is sample output - yours may be different.
Convert an SVG to PNG and then crush the filesize brutally with pngcrush. Good for icons and website junk that you want to keep small, expecially before base64 encoding.
Uses inkscape, not imagemagick, as IM doesn't always handle gradients well. This way also seems to sometime save some file size (eg. 619 with Inkscape compared to 695 with IM).
IM can do general images:
img2png(){ png="${1%.*}.png"; convert -background none "$1" "$png" && pngcrush -brute -rem alla -rem text "$png" "$png.new" && mv "$png.new" "$png"; }
ps -A -o rss,command | grep [C]hrome | awk '{sum+=$1} END {printf("%sMB\n",sum/1024)}'
This is sample output - yours may be different.
This is sample output - yours may be different.
This is sample output - yours may be different.
ps -o rss= -C Chrome | (x=0; while read rss; do ((x+=$rss)); done; echo $((x/1024)))
This is sample output - yours may be different.