
Terminal - All commands - 12,453 results
This is sample output - yours may be different.
This command will replace all the spaces in all the filenames of the current directory with underscores. There are other commands that do this here, but this one is the easiest and shortest.
curl -u YourUsername:YourPassword -d status="Your status message go here" http://twitter.com/statuses/update.xml
This is sample output - yours may be different.
<?xml version="1.0" encoding="UTF-8"?>
<status>
<created_at>Sat Jun 27 21:33:19 +0000 2009</created_at>
<id>2363785326</id>
<text>Settima robot message: ALARM ZONE 03 (sent via command line)</text>
<source>web</source>
<truncated>false</truncated>
<in_reply_to_status_id></in_reply_to_status_id>
<in_reply_to_user_id></in_reply_to_user_id>
<favorited>false</favorited>
<in_reply_to_screen_name></in_reply_to_screen_name>
<user>
<id>9982902</id>
<name>m33600</name>
<screen_name>m33600</screen_name>
<location></location>
<description></description>
<profile_image_url>http://static.twitter.com/images/default_profile_normal.png</profile_image_url>
<url></url>
<protected>false</protected>
<followers_count>4</followers_count>
<profile_background_color>9ae4e8</profile_background_color>
<profile_text_color>000000</profile_text_color>
<profile_link_color>0000ff</profile_link_color>
<profile_sidebar_fill_color>e0ff92</profile_sidebar_fill_color>
<profile_sidebar_border_color>87bc44</profile_sidebar_border_color>
<friends_count>3</friends_count>
<created_at>Tue Nov 06 00:18:20 +0000 2007</created_at>
<favourites_count>0</favourites_count>
<utc_offset>-10800</utc_offset>
<time_zone>Greenland</time_zone>
<profile_background_image_url>http://static.twitter.com/images/themes/theme1/bg.gif</profile_background_image_url>
<profile_background_tile>false</profile_background_tile>
<statuses_count>10</statuses_count>
<notifications>false</notifications>
<verified>false</verified>
<following>false</following>
</user>
</status>
Found it on snipt, pok3, is it yours?
I put my user = m33600, the password and the status was my robot message:
Settima robot message: ALARM ZONE 3 (sent via command line).
Now bots may have their identity on twitter...
S=`pidof skype`;grep heap /proc/$S/maps|cut -f1 -d' '|awk -F- '{print "0x" $1 " 0x" $2}'|xargs echo "du me t ">l;gdb -batch -p $S -x l>/dev/null 2>&1;strings t|grep \(smirk|head -n1
This is sample output - yours may be different.
(...) |\(banghead\)|\(bear\)|\(beer\)|\(blush\)|\(bow\)|\(bricklayers\)|\(brokenheart\)|\(bug\)|\(bye\)|\(cake\)|\(call\)|\(cash\)|\(chuckle\)| (...)
Skype has an internal regex which depicts the emoticons it supports. However you cannot simply search the binary file for it. This small 181 character line will do just that, provided skype is running. And of course, only works in linux.
awk '/regex/{print x};{x=$0}'
This is sample output - yours may be different.
Use this if you don't have access to GNU grep's -B option.
:let i=0 | 'a,'bg/ZZZZ/s/ZZZZ/\=i/ | let i=i+1
This is sample output - yours may be different.
( cd SOURCEDIR && tar cf - . ) | (cd DESTDIR && tar xvpf - )
This is sample output - yours may be different.
pax -r -s ',^/,,' -f file.tar
This is sample output - yours may be different.
$ tar tvf test.tar
drwxr-xr-x u4x6691/unixadm 0 2009-06-26 15:39 /tmp/test/
-rw-r--r-- u4x6691/unixadm 0 2009-06-26 15:39 /tmp/test/a
-rw-r--r-- u4x6691/unixadm 0 2009-06-26 15:39 /tmp/test/b
-rw-r--r-- u4x6691/unixadm 0 2009-06-26 15:39 /tmp/test/c
$ pax -r -s ',^/,,' -f ./test.tar
$ ls -l tmp/
total 4
drwxr-xr-x 2 u4x6691 unixadm 4096 Jun 26 15:39 test
$ ls -l tmp/test/
total 0
-rw-r--r-- 1 u4x6691 unixadm 0 Jun 26 15:39 a
-rw-r--r-- 1 u4x6691 unixadm 0 Jun 26 15:39 b
-rw-r--r-- 1 u4x6691 unixadm 0 Jun 26 15:39 c
Don't have GNU tar installed that supports the redirect option (-C)? Use this.
find -L /proc/*/fd -links 0 2>/dev/null
This is sample output - yours may be different.
$ dd if=/dev/zero of=bigfile bs=1M count=3000
$ ls -lh bigfile
-rw-r--r-- 1 u4x6691 unixadm 3.0G Jun 26 14:39 bigfile
$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 36G 24G 10G 71% /
$ tail -f bigfile &
$ rm bigfile
$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 36G 24G 10G 71% /
$ find -L /proc/*/fd -type f -links 0 2>/dev/null
/proc/2035/fd/3
$ ls -l /proc/2035/fd/3
lr-x------ 1 u4x6691 unixadm 64 Jun 26 14:42 /proc/2035/fd/3 -> /tmp/bigfile (deleted)
Oracle DBA remove some logfiles which are still open by the database and he is complaining the space has not been reclaimed? Use the above command to find out what PID needs to be stopped. Or alternatively recover the file via:
cp /proc/pid/fd/filehandle /new/file.txt
This is sample output - yours may be different.
Type this into windows via run and it will display to you your complete policy for windows. This includes group policy, security policy and your active directory account (min password etc)....
www.fir3net.com
This is sample output - yours may be different.
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 3307338 0 0 0 4295576 0 0 0 BMRU
lo 16436 0 787762 0 0 0 787762 0 0 0 LRU
sit0 1480 0 0 0 0 0 0 0 0 0 O
This is sample output - yours may be different.
ps aux | grep -v `whoami`
This is sample output - yours may be different.
pdftk $* cat output $merged.pdf
This is sample output - yours may be different.
echo "Hello World." | tee -a hello.txt
This is sample output - yours may be different.
$ echo "Hello World." | tee -a hello.txt
Hello World.
$ cat hello.txt
Hello World.
When plumbers use pipes, they sometimes need a T-joint. The Unix equivalent to this is 'tee'. The -a flag tells 'tee' to append to the file, rather than clobbering it.
Tested on bash and tcsh.
man fetchmail | perl -ne 'undef $/; print $1 if m/^.*?(-k \| --keep.*)-K \| --nokeep.*$/smg'
This is sample output - yours may be different.
-k | --keep
(Keyword: keep) Keep retrieved messages on the remote mailserver. Normally, messages are deleted from the folder on the mailserver after they have been retrieved. Specifying
the keep option causes retrieved messages to remain in your folder on the mailserver. This option does not work with ETRN or ODMR. If used with POP3, it is recommended to also
specify the --uidl option or uidl keyword.
Using perl, here, we grep the man page of fetchmail to find the paragraph starting with '-k | --keep' and ending before the paragraph starting with '-K | --nokeep'
echo "aplay path/to/song" |at [time]
This is sample output - yours may be different.
For instance:
echo "aplay /media/dados/audio/geral/Yahoo.wav" | at 16:28
Set an alarm to starts in specific time.
sleep 5h && rhythmbox path/to/song
This is sample output - yours may be different.
Sleep 5h and plays the song as a wake up alarm
gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf a.pdf b.pdf c.pdf
This is sample output - yours may be different.
merge a.pdf b.pdf and c.pdf and create ./out.pdf
su - <user> -s /bin/sh -c "/bin/sh"
This is sample output - yours may be different.
[[email protected] ~]# su - nobody
This account is currently not available.
[[email protected] ~]# su - nobody -s /bin/sh -c "/bin/sh"
sh-3.2$ id
uid=99(nobody) gid=99(nobody) grupos=99(nobody) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
nmap -A -p1-85,113,443,8080-8100 -T4 --min-hostgroup 50 --max-rtt-timeout 2000 --initial-rtt-timeout 300 --max-retries 3 --host-timeout 20m --max-scan-delay 1000 -oA wapscan 10.0.0.0/8
This is sample output - yours may be different.
Outputs data in greppable format, plain text and XML. The XML output has an associated XSL stylesheet, which allows you to open the data in a browser.
I've used this scan to sucessfully find many rogue APs on a very, very large network.
mstsc /w:1500 /h:900 /v:www.example.com
This is sample output - yours may be different.
Using a widescreen monitor, I often get annoyed that the RDP window is too high, or too narrow for what I want to display. In this example, I'm on a 1680 x 1050 display.
echo "-------------" >> nicinfo.txt; echo "computer name x" >> nicinfo.txt; ifconfig | grep status >> nicinfo.txt; ifconfig | grep inet >> nicinfo.txt; ifconfig | grep ether >> nicinfo.txt; hostinfo | grep type >> nicinfo.txt;
This is sample output - yours may be different.
-------------
+ sander
media: autoselect (100baseTX <full-duplex,flow-control>) status: active
media: autoselect (<unknown type>) status: inactive
media: autoselect <full-duplex> status: inactive
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet6 fe80::216:cbff:fe36:f966%en0 prefixlen 64 scopeid 0x4
inet 192.168.10.220 netmask 0xffffff00 broadcast 192.168.10.255
ether 00:16:cb:36:f9:66
ether 00:16:cb:36:f9:67
Processor type: ppc970 (PowerPC 970)
get desired info from machine and pipe it txt file.
This is sample output - yours may be different.
done
desktop auto-start disabled.
With a full installation of Solaris 10, the graphical login and desktop will start by default. This command will disable that feature. To enable it again use: /usr/dt/bin/dtconfig -e
sudo /Applications/Utilities/Adobe\ Utilities.localized/Adobe\ Updater5/Adobe\ Updater.app/Contents/MacOS/Adobe\ Updater
This is sample output - yours may be different.
This is sample output - yours may be different.
blue] $
(reverse-i-search)`': ls
#Press enter to run the selected command.
Very handy and time-saving.
Do a 'ctrl+ r' on command prompt. You will see a "(reverse-i-search)`':" mark. Just type any sub-string of the command you want to search(provided you have used it sometime in the same session).
Keep on searching by repeatedly pressing ctrl+r. Press enter once you get the desired command string.