Useful Lesser Known Commands for Linux

Mar 26, 2015 06:03 PM
Mar 27, 2015 03:41 PM
635629646211385814.jpg

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!!

Related Articles

637263493835297420.jpg

How to Use Zero-Width Characters to Hide Secret Messages in Text (& Even Reveal Leaks)

636455706472146367.jpg

How to Hide DDE-Based Attacks in MS Word

Comments

No Comments Exist

Be the first, drop a comment!