How To: Useful Lesser Known Commands for Linux

Useful Lesser Known Commands for Linux

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

Just updated your iPhone? You'll find new emoji, enhanced security, podcast transcripts, Apple Cash virtual numbers, and other useful features. There are even new additions hidden within Safari. Find out what's new and changed on your iPhone with the iOS 17.4 update.

5 Comments

This was a very well made post! I hope to see more! :D

Always fun to learn more useful linux commands. Shred is an unexpected nugget. Thanks!

Hello i am mamun hossain plzz send me hack all softwear

my facebook id www.facebook.com/mamunhossain23

skype mamun.hossain730

my mail address djmamun799@gmail.com

Mamun:

You can download all the software we use by downloading Kali Linux from kali.org

OTW

Share Your Thoughts

  • Hot
  • Latest