Monday, 26 March 2012

Gravitational Force in Your Google search page

Read about the special Google experiment called Google gravity [ Click here to read more]

Tuesday, 6 March 2012

LILO and GRUB : The Boot-loaders of Linux

Know about the boot loaders of Linux [Click here]


Wednesday, 29 February 2012

Create a hidden folder in Linux using terminal

Now let me discuss how to make a hidden folder in your Linux system using simple command. This can be considered as the application part of the previous blogs about handling files and folders.

open up command terminal :

step 1 : make a folder using mkdir command

     mkdir myfolder

step 2: Use mv command

     mv  myfolder  .myfolder

Enough there is a hidden folder created inside your home directory. You can also make existing folders with mv command as specified in step 2. You need to just change the folder name only :)

Handling Folders and Files with Linux command Line -Final Part

Now remaining are just 2 operations .Copying and moving files and folders.You can copy a file using cp command
Inorder to copy a file to a destination we can use cp command.usage is listed as follows: 
   cp  <file to copy >  <destination>
Moving Files or folders with mv command. 
   mv  <source file >  <destination>
Now you can handle your files and folders easily.

Thursday, 23 February 2012

Handling Folders and Files with Linux command Line[part2]

In the previous part I just explained 3 commands that will help you to navigate through files and folders in your system.In this section let us discuss how to perform some actions like create, rename, remove folders using command line.
Creating a folder using the command:
The command used to create a folder is mkdir .Open up the terminal and type :
                                 mkdir myfolder

 A new folder named myfolder will be there in your home directory.You can make folders anywhere in your system.But you must mention the directory address for your folder with folder name otherwise the folder will be created in the current directory.
Eg: to make a folder in the directory /tmp use the following command.

                                 mkdir /tmp/myfolder

Extra note : Normally your system will not display any message after creation of the folder. If you add the parameter -v to the mkdir command you will get a message after the creation of the folder (eg: mkdir myfolder -v)
Removing a file or folder
The Linux kernel consider folder and file as same .You can remove any file or folder using the command rm .
the usage of the command is rm  [option]  <file> .
Here are the important options you might use.
 -f    (forcefully removes file with no prompting)
 -v   (Explains what is being done)
 -r   (Removes files recursively in a directory.It is used when the folder contains subfolders.)
I just mentioned the syntax above. But you need just a single command to remove a folder that is
             rm  -rf  /tmp/myfolder

here '-rf' is the option with the command which says that files will be removed recursively and forcefully. And /tmp/myfolder will be the folder we want to delete.