Header Banner
Null Byte Logo
Null Byte
wonderhowto.mark.png
Cyber Weapons Lab Forum Metasploit Basics Facebook Hacks Password Cracking Top Wi-Fi Adapters Wi-Fi Hacking Linux Basics Mr. Robot Hacks Hack Like a Pro Forensics Recon Social Engineering Networking Basics Antivirus Evasion Spy Tactics MitM Advice from a Hacker

Useful Lesser Known Commands for Linux

Mar 26, 2015 06:03 PM
Mar 27, 2015 03:41 PM
CLI command reference guide on a black background.

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

You already know how to use your phone. With Gadget Hacks' newsletter, we'll show you how to master it. Each week, we explore features, hidden tools, and advanced settings that give you more control over iOS and Android than most users even know exists.

Sign up for Gadget Hacks Weekly and start unlocking your phone's full potential.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!