
Terminal - All commands - 10,555 results
This is sample output - yours may be different.
for f in * ; do mv -- "$f" "${f/[0-9][0-9] \- /}" ; done
This is sample output - yours may be different.
I have often file like this
01 - file.file
02 - file.file
03 - file.file
I rename all with this command
for f in * ; do mv -- "$f" "${f/[0-9][0-9] \- /}" ; done
then it looks like this
file.file
file.file
file.file
etc
This is sample output - yours may be different.
rdate -s time-A.timefreq.bldrdoc.gov
This is sample output - yours may be different.
This is sample output - yours may be different.
wmwave is part of wmwave package, when launched display a small wireless link monitor on your desktop with noise, level and link power.
This is sample output - yours may be different.
root@ubuserver:~# read enterKey
root@ubuserver:~#
how to finish command or script without any output
gpg --verify file.txt.asc file.txt
This is sample output - yours may be different.
alias gtasks='chromium-browser --app=https://mail.google.com/tasks/ig'
This is sample output - yours may be different.
requires a gmail account, it opens Google tasks in a self contain window, to write your todo list and have it sync online yay =)
gpg -d file.txt.gpg -o file.txt
This is sample output - yours may be different.
This is sample output - yours may be different.
alias findstring="find . -type f -print | xargs grep $1"
This is sample output - yours may be different.
for i in {21..79};do echo -e "\x$i";done | tr " " "\n" | shuf | tr -d "\n"
This is sample output - yours may be different.
Tx(%FB'9u3&f@Pt0h#iH"y2R4s!r$8q6cwE1bD5eU)7YgXavAIpGSdQWV`C
Generates a password using symbols, alpha, and digits. No repeating chars.
wget -q -O- www.whatismyip.org/ipimg.php | djpeg -pnm -gray | gocr -
This is sample output - yours may be different.
This is sample output - yours may be different.
if [[ lm = $(cat /proc/cpuinfo | grep " lm ") ]] ; then echo "64 bits" ; else echo "32 bits" ; fi
This is sample output - yours may be different.
CPU flags:
rm --> 16-bit processor (real mode)
tm --> 32-bit processor (? mode)
lm --> 64-bit processor (long mode)
for FILE in $(ls); do [COMMAND]; done
This is sample output - yours may be different.
# Small for loop, that can list files in dir, and after that executes
# [COMMAND] of your choice, usefull for example rename, move, tar etc..
# change cmd's for different results :)
yum erase `yum list installed | grep 'php'`
This is sample output - yours may be different.
This is useful for remove all packages that are part of a common suite.
perl -lne 'use POSIX; print strftime("%Y-%m-%d", localtime(time() - 86400));'
This is sample output - yours may be different.
This is sample output - yours may be different.
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5110 @ 1.60GHz
stepping : 6
cpu MHz : 1595.930
cache size : 4096 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx tm2 cx16 xtpr dca lahf_lm
bogomips : 3195.07
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
how to get full cpu info of your (linux) box
for i in `netstat -rn |grep lan |cut -c55-60 |sort |uniq`; do ifconfig $i; done
This is sample output - yours may be different.
for i in `netstat -rn |grep lan |cut -c55-59 |sort |uniq`; do ifconfig $i; done
lan0: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
inet 1.1.1.1 netmask ff000000 broadcast 1.255.255.255
lan1: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
inet 1.1.x.x netmask ffffff00 broadcast 1.255.255.255
lan2: flags=1843<UP,BROADCAST,RUNNING,MULTICAST,CKO>
inet 1.2.x.x netmask ffff0000 broadcast 1.255.255.255
HP UX doesn't have a -a switch in the ifconfig command.
This line emulates the same result shown in Solaris, AIX or Linux
awk 'NR==linenumber' filename
This is sample output - yours may be different.
echo 213.251.145.96 wikileaks.com | sudo tee -a /etc/hosts
This is sample output - yours may be different.
This one is a little bit easier for those of us that aren't always root.
snmpwalk -v3 -On -u <user> -l NoAuthNoPriv -m ALL <HOST_IP> .
This is sample output - yours may be different.
while true; do netstat -p |grep "tcp"|grep --color=always "/[a-z]*";sleep 1;done
This is sample output - yours may be different.
tcp 0 0 x.x.x.x:49013 tx-in-f191.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:53838 hk-in-f83.google.:https ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:37727 72.14.203.106:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:35615 hk-in-f19.google.:https ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:52213 tx-in-f103.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:38914 tx-in-f133.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:45856 tx-in-f99.google.c:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:37726 72.14.203.106:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:45863 tx-in-f99.google.c:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:45862 tx-in-f99.google.c:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:44211 ag-in-f12:jabber-client ESTABLISHED 4351/pidgin
tcp 0 0 x.x.x.x:45861 tx-in-f99.google.c:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:37725 72.14.203.106:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:44212 ag-in-f12:jabber-client ESTABLISHED 4351/pidgin
tcp 0 0 x.x.x.x:52210 tx-in-f103.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:37718 tx-in-f101.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:52212 tx-in-f103.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:52211 tx-in-f103.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:52209 tx-in-f103.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:36595 72.14.203.138:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:52377 hk-in-f104.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:41747 calvino.freenode.n:ircd ESTABLISHED 4406/irssi
tcp 0 0 x.x.x.x:49014 tx-in-f191.google.:http ESTABLISHED 3156/firefox-bin
tcp 0 0 x.x.x.x:45857 tx-in-f99.google.c:http ESTABLISHED 3156/firefox-bin
The -p parameter tell the netstat to display the PID and name of the program to which each socket belongs or in digestible terms list the program using the net.Hope you know what pipe symbol means!
Presently we wish to only moniter tcp connections so we ask grep to scan for string tcp, now from the op of grep tcp we further scan for regular expression /[a-z]*.
Wonder what that means ?
If we look at the op of netstat -p we can see that the name of the application is preceded by a / ( try netstat -p ) so,now i assume application name contains only characters a to z (usually this is the case) hope now it makes some sense.Regular expression /[a-z]* means to scan a string that start with a / and contains zero or more characters from the range a-z !!. Foof .. is t
snmpwalk -v3 -On -u <user> -l AuthNoPriv -a MD5 -A <auth_password> -m ALL <HOST_IP> .
This is sample output - yours may be different.