ping can be used for a lot of things. I do use it a lot to test reachability and how my internet access is behaving.
Usually you just execute ping in your terminal and then hit Ctrl+C to see the summary as follows:
Hitting Ctrl+C will send an interrupt signal (SIGINT) to the process, making it to terminate and show ing the summary.
Once in a while you need to check a long ping run but don't want to stop it (because of the final stats). The way of doing it, is to send a SIGINFO signal hitting Ctrl+T while the process runs.
Check line 9 and 10 in the previous example:
and ping continues running!!!
References: Ping OS X Manual.
Mostrando las entradas con la etiqueta terminal. Mostrar todas las entradas
Mostrando las entradas con la etiqueta terminal. Mostrar todas las entradas
20120824
20120712
sudo without password on Ubuntu
First edit your sudoers file:
sudo visudoAdd this line
your_username ALL=(ALL) NOPASSWD: ALLSave it, and that's it!
20110201
How to create a .iso image of a cd on a Mac OsX
As OsX is Unix based we have a lot of tools that came in the standard installation of our Mac.
To create an ISO file we have to use the dd command in our terminal.
Insert your CD-ROM into your CD-ROM drive, and then fire up your Teminal (Applications/Utilites/Terminal). Run this command to get the name of the device: drutil status
As we can see here our drives name is disk1. To use dd we need to umount the CD-ROM:
Now we can use dd to create the iso file:
after the iso file is created you can mount the CD-ROM with:
;)
To create an ISO file we have to use the dd command in our terminal.
Insert your CD-ROM into your CD-ROM drive, and then fire up your Teminal (Applications/Utilites/Terminal). Run this command to get the name of the device: drutil status
diegoMB:~ diego$ drutil status
Vendor Product Rev
HL-DT-ST DVDRW GWA4080MA BE39
Type: DVD-ROM Name: /dev/disk1
Sessions: 1 Tracks: 1
Overwritable: 00:00:00 blocks: 0 / 0.00MB / 0.00MiB
Space Free: 00:00:00 blocks: 0 / 0.00MB / 0.00MiB
Space Used: 336:26:02 blocks: 1513952 / 3.10GB / 2.89GiB
Writability:
Book Type: DVD-ROM (v1)
As we can see here our drives name is disk1. To use dd we need to umount the CD-ROM:
diskutil unmountDisk disk1
Now we can use dd to create the iso file:
dd if=/dev/disk1 of=my_file.iso
after the iso file is created you can mount the CD-ROM with:
diskutil mountDisk disk1
;)
Suscribirse a:
Entradas (Atom)