Wednesday, October 10, 2012
How to use stat command in Linux…
stat command used to check status
of file and directory to check that when
it got created, accessed, modified and its inodes number etc. we can get complete
information of a file or directory with this command.
The example of this command is given
bellow.
~]#stat
anaconda-ks.cfg
File: `anaconda-ks.cfg'
Size: 1746
Blocks: 8 IO Block:
4096 regular file
Device: 802h/2050d Inode: 2097161 Links: 1
Access:
(0600/-rw-------) Uid: ( 0/
root) Gid: ( 0/
root)
Access: 2012-10-08
14:59:57.731037711 +0530
Modify: 2012-10-05
14:52:31.366189336 +0530
Change: 2012-10-05
14:52:35.482189599 +0530
Wednesday, October 3, 2012
Using ping command with different-different ways in linux...
Ping stands for Packet Internet Groper. This is a command which used to
check connectivity between two different hosts or in two different network
devices like router and pc. We can use this command in many ways. That all ways
are given bellow.
This command shows reply continuously with IP address after every 1
second interval.
~]#ping 192.168.1.1
This command shows reply continuously
with IP address after every half second interval.
~]#ping 192.168.1.1
-i 0.5
This command shows reply five times continuously with IP address after every
half second.