Re: Post your Command line tricks
Posted: Sun May 03, 2015 9:02 pm
because it's a builtin, yup :)
Code: Select all
update-rc.d -f <service> remove
Code: Select all
rc-update [add|remove] <service> [runlevel]
Code: Select all
dpkg-query -W --showformat='${Installed-Size;10}\t${Package}\n' | sort -k1,1n
Code: Select all
profile="$HOME/.profile"
shell_aliases="$HOME/etc/shell/bash/aliases.bash"
shell_functions="$HOME/etc/shell/bash/functions.bash"
files="$profile $shell_aliases $shell_functions"
for setup_file in $files; do
test -f "$setup_file" && . $setup_file
done
Code: Select all
sudo iwlist wlan0 scan | grep Frequency | sort | uniq -c | sort -n
Code: Select all
iwlist wlan0 channel
Code: Select all
┌┤rhowaldt@lalala [~]
└──┤$ ps aux | grep nicotine
rhowaldt 19459 0.0 0.1 4552 2104 pts/2 S+ 04:09 0:00 grep --color=auto nicotine
rhowaldt 29892 4.4 3.5 160016 72628 ? Sl Jul20 12:34 /usr/bin/python /usr/bin/nicotine
Code: Select all
┌┤rhowaldt@lalala [~]
└──┤$ ls -l /proc/29892/fd
total 0
lr-x------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 0 -> pipe:[1484919]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 1 -> /dev/tty1
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 10 -> /home/rhowaldt/.nicotine/config.wordindex.db
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 11 -> /home/rhowaldt/.nicotine/config.buddywordindex.db
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 12 -> /home/rhowaldt/.nicotine/config.fileindex.db
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 13 -> /home/rhowaldt/.nicotine/config.buddyfileindex.db
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 14 -> /home/rhowaldt/.nicotine/config.mtimes.db
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 15 -> /home/rhowaldt/.nicotine/config.buddymtimes.db
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 16 -> socket:[1484517]
lr-x------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 17 -> anon_inode:inotify
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 18 -> anon_inode:[eventfd]
lr-x------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 19 -> /proc/29892/mounts
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 2 -> /dev/tty1
lr-x------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 20 -> pipe:[1485295]
l-wx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 21 -> pipe:[1485295]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 22 -> socket:[1485974]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 23 -> socket:[9280199]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 24 -> socket:[9280208]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:10 25 -> socket:[9280706]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:10 26 -> socket:[9281548]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 27 -> socket:[9281549]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:10 28 -> /home/rhowaldt/.nicotine/incompletefiles/INCOMPLETE38fad79680e0bf38dbb5cd7be4022a9bKing Oliver - One More Time 15-4-1931.MP3
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:10 29 -> /home/rhowaldt/.nicotine/incompletefiles/INCOMPLETE1fb6be07cfcf2da2df038bddcd02f32209 Sensation Rag.mp3
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 3 -> /home/rhowaldt/.nicotine/config.files.db
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 30 -> socket:[9283829]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:10 31 -> socket:[9075282]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:10 32 -> /home/rhowaldt/.nicotine/incompletefiles/INCOMPLETEa2f94f84cf9d500e95908b9710d0e7727 - Memphis Blues (Or, Mister Crump).m4a
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:10 33 -> /home/rhowaldt/.nicotine/incompletefiles/INCOMPLETE3cc0b04af822b47fadd65eb60437e30fwilli mae 'big mama' thornton - the big change.mp3
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 4 -> socket:[1484509]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 5 -> anon_inode:[eventfd]
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 6 -> /home/rhowaldt/.nicotine/config.buddyfiles.db
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 7 -> /home/rhowaldt/.nicotine/config.streams.db
lr-x------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 8 -> /dev/urandom
lrwx------ 1 rhowaldt rhowaldt 64 Jul 21 04:03 9 -> /home/rhowaldt/.nicotine/config.buddystreams.db
Code: Select all
wget http://ipinfo.io/ip -qO -
Code: Select all
dig +short myip.opendns.com @resolver1.opendns.com