Hello everyone on null byte this is my first tutorial
This Tutorial Is on Useful Lesser Known Commands on Linux
STAT COMMAND:
The stat command displays the status of a file.The information is much more when compared to ls -l. It also includes the absolute path,Number of blocks used by the file,access time, time of modification etc.,,
To use stat:
stat filename
root@localhost:~# stat kali_linux.jpg
File: `kali_linux.jpg'
Size: 298067 Blocks: 600 IO Block: 4096 regular file
Device: 801h/2049d Inode: 1348275 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-03-26 10:31:20.000000000 +0000
Modify: 2014-11-22 05:24:57.000000000 +0000
Change: 2015-03-26 10:31:19.000000000 +0000
Birth: -
SHRED COMMAND
The operating system does not completely erase a file when the file is deleted.the file could be recovered by third party forensic tools. But we can use the SHRED command to overwrite a file to make it almost impossible for it to be recovered. The file is overwritten three times, by default,which can be changed by the -n option
root@localhost:~# shred -n 6 NewDocument
WATCH COMMAND
The watch command can be used to repeat a command at fixed intervals.the default interval is 2 second.the interval can be changed with -n option
root@localhost:~# watch -n 2 free
Every 2.0s: free Thu Mar 26 10:58:11 2015
total used free shared buffers cached
Mem: 4117408 739540 3377868 0 45036 317668
-/+ buffers/cache: 376836 3740572
Swap: 0 0 0
Any questions,comment!!
Comments
No Comments Exist
Be the first, drop a comment!