HOW TO HIDE A FILE IN LINUX

In this blog we are going to learn how to actually hide a file in linux .

Follow these steps :

# ls ( to check all file )command to check all files in your system. But it won’t show hidden files.

[root@deepit ~]# ls
A                                                        D            install.log.syslog
anaconda-ks.cfg                                          Deepit       new
b.txt                                                    Desktop      new.tar.gz
Cisco Packet Tracer 6.2 for Windows Student Version.exe  f.txt        rhel54iso.iso
crossover-pro-9.0.0-1.i386 (1).rpm                       HDR          vipul
c.txt                                                    install.log  webmin-1.580-1.noarch.rpm

# vim .deepit.txt ( applying point before my file will hide my file from others)

Hii my name is Deepit pillai
My site deepitp5.wordpress.com
~
~
~
~
~
~
~
~
~

N

~
~
~
:wq

Now you can check by ls command that your file is been hidden. If you want to see your hidden files you can type

#ls -la ( to check hidden files)

[root@deepit ~]# ls -la
total 4160308
drwxr-x--- 31 root root       4096 Jan 11 08:21 .
drwxr-xr-x 27 root root       4096 Jan 11 08:15 ..
drwxr-xr-x  2 root root       4096 Jan  7 01:36 A
-rw-------  1 root root       1144 Dec 20 04:58 anaconda-ks.cfg
-rw-r--r--  1 root root         61 Jan 11 08:21 .deepit.txt
-rw-------  1 root root       3492 Jan 11 08:17 .bash_history
-rw-r--r--  1 root root         24 Jul 12  2006 .bash_logout
-rw-r--r--  1 root root        191 Jul 12  2006 .bash_profile
-rw-r--r--  1 root root        176 Jul 12  2006 .bashrc
-rw-r--r--  1 root root  524288000 Jan  8 02:13 b.txt
-rw-r--r--  1 root root  153811128 Jan  5 00:58 Cisco Packet Tracer 6.2 for Windows Student Version.exe
drwxr-xr-x  4 root root       4096 Jan  5 01:15 .config
-rw-r--r--  1 root root   29985728 Jan  5 01:05 crossover-pro-9.0.0-1.i386 (1).rpm
-rw-r--r--  1 root root        100 Jul 12  2006 .cshrc
-rw-r--r--  1 root root  524288000 Jan  8 02:13 c.txt
drwxr-xr-x  4 root root       4096 Jan  5 01:16 .cxoffice
drwxr-xr-x  2 root root       4096 Jan  7 01:33 D
-rw-r--r--  1 root root         68 Jan  7 01:10 .DCOPserver_localhost.localdomain__0
lrwxrwxrwx  1 root root         42 Jan  7 01:10 .DCOPserver_localhost.localdomain_:0 -> /root/.DCOPserver_localhost.localdomain__0
d------rwx  2 root root       4096 Jan 10 00:17 Deepit
drwxr-xr-x  4 root root      65536 Jan  7 01:10 Desktop
-rw-------  1 root root         26 Dec 20 11:11 .dmrc
drwxr-x---  2 root root       4096 Dec 20 11:11 .eggcups
drwx------  2 root root       4096 Jan 10 00:12 .elinks
-rw-------  1 root root         16 Jan  7 01:10 .esd_auth
-rw-r--r--  1 root root         22 Jan  8 03:17 f.txt

HOW TO SEND A MESSAGE THAT WILL SELF-DESTRUCT IN RECIPIENT’S INBOX

WHAT IS LVM AND HOW TO CONFIGURE ?

HOW TO MAKE YOUR ANDROID PHONE A CCTV CAMERA OR SPY CAMERA

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s