AMAZON

Showing posts with label folders. Show all posts
Showing posts with label folders. Show all posts

Thursday, September 20, 2012

Hide Your Folders in windows OS Without Any Software




With this trick, you can create a secure password protected folder in Windows which no one except you can access. To use this trick, follow the instructions given below:-

1. Open Notepad.

2. Copy and paste the exact code given below:-

cls

@ECHO OFF

title Kanishk Security System.

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD

-08002B30309D}" goto UNLOCK

if NOT EXIST MyFolder goto MDMyFolder

:CONFIRM

echo Are you sure to lock this folder? (Y/N)

set/p "cho=>"

if %cho%==Y goto LOCK

if %cho%==y goto LOCK

if %cho%==n goto END

if %cho%==N goto END

echo Invalid choice.

goto CONFIRM

:LOCK

ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD

-08002B30309D}"

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD

-08002B30309D}"

echo Folder locked

goto End

:UNLOCK

echo Enter password to Unlock Your Secure Folder

set/p "pass=>"

if NOT %pass%== mysecretfolder goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD

-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD

-08002B30309D}" MyFolder

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDMyFolder

md MyFolder

echo MyFolder created successfully

goto End

:End

Click on the File Menu. Click on Save As.

4. Select All Types in the Save As Type dropdown menu. Save the file as *.bat or Locker.bat.

After creating the file, double click on the Saved file. A new folder will be created. Enter your data in the folder. Again, double click on the batch file. Type Y and press Enter. The folder will be hidden from view.

To re-view your folder, double click on the saved batch file. Enter password as "mysecretfolder " without quotes and press Enter key. This is also the default password. Your folder will be visible again.

To change the default password, edit the part of the code where it is written "mysecretfolder " and enter your own password.

The overall usability of this trick can be improved by deleting the batch file after hiding your folder and re-creating it when you wish to access your folder again.

If you face any problem using this trick, you can write a comment and I will do my best to help you.

Saturday, September 1, 2012

Use shell command in the open terminal for finding files on a Linux (Ubuntu 12.04 and older version)



Use shell command in the terminal for finding files on a Linux (Ubuntu 12.04 and older version)
 CTRL + ALT +T
open the terminal
CT
find / -name game

Looks for a file named "game" starting at the root directory (searching all directories including mounted filesystems). The `-name' option makes the search case sensitive. You can use the `-iname' option to find something regardless of case.

 find /home -user joe

Find every file under the directory /home owned by the user joe.

 find /usr -name *stat

Find every file under the directory /usr ending in "stat".

 find /var/spool -mtime +60

Find every file under the directory /var/spool that was modified more than 60 days ago.

 find /tmp -name core -type f -print | xargs /bin/rm -f

Find files named core in or below the directory /tmp and delete them. Note that this will work incorrectly if there are any filenames containing newlines, single or double quotes, or spaces.

 find /tmp -name core -type f -print0 | xargs -0 /bin/rm -f

Find files named core in or below the directory /tmp and delete them, processing filenames in such a way that file or directory names containing single or double quotes, spaces or newlines are correctly handled. The -name test comes before the -type test in order to avoid having to call stat(2) on every file.

 find . -type f -exec file '{}' \;

Runs `file' on every file in or below the current directory. Notice that the braces are enclosed in single quote marks to protect them from interpretation as shell script punctuation. The semicolon is similarly protected by the use of a backslash, though ';' could have been used in that case also.

find / \( -perm -4000 -fprintf /root/suid.txt '%#m %u %p\n' \), \
 \( -size +100M -fprintf /root/big.txt '%-10s %p\n' \)

Traverse the filesystem just once, listing setuid files and directories into /root/suid.txt and large files into /root/big.txt.

 find $HOME -mtime 0

Search for files in your home directory which have been modified in the last twenty-four hours. This command works this way because the time since each file was last modified is divided by 24 hours and any remainder is discarded. That means that to match -mtime 0, a file will have to have a modification in the past which is less than 24 hours ago.

 find . -perm 664

Search for files which have read and write permission for their owner, and group, but which other users can read but not write to. Files which meet these criteria but have other permissions bits set (for example if someone can execute the file) will not be matched.

 find . -perm -664

Search for files which have read and write permission for their owner and group, and which other users can read, without regard to the presence of any extra permission bits (for example the executable bit). This will match a file which has mode 0777, for example.

 find . -perm /222

Search for files which are writable by somebody (their owner, or their group, or anybody else).

 find . -perm /220
 find . -perm /u+w,g+w
 find . -perm /u=w,g=w

All three of these commands do the same thing, but the first one uses the octal representation of the file mode, and the other two use the symbolic form. These commands all search for files which are writable by either their owner or their group. The files don't have to be writable by both the owner and group to be matched; either will do.

 find . -perm -220
 find . -perm -g+w,u+w

Both these commands do the same thing; search for files which are writable by both their owner and their group.

 find . -perm -444 -perm /222 ! -perm /111
 find . -perm -a+r -perm /a+w ! -perm /a+x

These two commands both search for files that are readable for everybody (-perm -444 or -perm -a+r), have at least on write bit set (-perm /222 or -perm /a+w) but are not executable for anybody (! -perm /111 and ! -perm /a+x respectively)

Tuesday, July 31, 2012

How to rar/unrar the files on Linux operating system using open command terminal

Using rarlinux
download rarlinux tool from win-rar website and Gunzip the downloaded rarlinux-3.7.1.tar.gzip file
[root@vinsun]#gunzip rarlinux-3.7.1.tar.gzip
To extract the gunzipped but .tar file
[root@vinsun]#tar xvf rarlinux-3.7.1.tar
The above will extract the tar file to a folder in your present working directory called rar.
enter tho the rar dir
[root@vinsun]# cd ./rar
long list the rar folder -
[root@vinsun]# ls -l ./rar
You should see an executable file called unrar. There you go -
To unrar a file -
[root@vinsun]# ./unrar x file.rar
To extract a password protected rar file -
[root@vinsun]#./unrar x -p[password] file.rar


Using unrar:
Fetch and install unrar tools from fedora extra repository -
[root@cafe moon]#yum install unrar
To see unrar help pages-
[root@cafe moon]# unrar ?
To extract a rar file -
[root@cafe moon]# unrar x file.rar
To extract a password protected rar file -
[root@cafe moon]#unrar x -p[password] file.rar

Using rarlinux:
Download the rarlinux tool from Winrar website and Gunzip the downloaded rarlinux-3.7.1.tar.gzip file
[root@cafe moon]#gunzip rarlinux-3.7.1.tar.gzip
To extract the gunzipped but .tar file
[root@cafe moon]#tar xvf rarlinux-3.7.1.tar
The above will extract the tar file to a folder in your present working directory called rar.
enter tho the rar dir
[root@cafe moon]# cd ./rar
long list the rar folder -
[root@cafe moon]# ls -l ./rar
You should see an executable file called unrar. There you go -
To unrar a file -
[root@cafe moon]# ./unrar x file.rar
To extract a password protected rar file -
[root@cafe moon]#./unrar x -p[password] file.rar

Monday, July 9, 2012

How to recover the deleted default folders in my home folder

In Ubuntu 10.04 you can edit the file ~/.config/user-dirs.dirs to change the location of those folders.

When you've change the file you need to restart nautilus (run 'nautilus -q' in a terminal or log out an in again).

Home folder


 Consequenues
  • How will applications that expect them to be present behave?
  • Where will the items on my desktop go?

open the file "user-dirs.dirs" using the gedit

/home/.config/user-dirs.dirs

Edit the file if u want to make changes and logout & login to reset.