IMPORTANT IN LINUX

From this text I’m going to introduce you some of the commands which will helpful to you in working with LINUX.

HOW TO CREATE A SYMBOLIC LINK?

Symbolic link is a copy of the file or the directory which can be used to redirect to the original location. Let’s look how to create a symbolic link for a file.

  • First of all I create a file and a directory.

s1.png

  • I have created a directory called symbolicFolder and a file called symbolic.

s2.png

  • Now I want to add a symbolic link for that file, inside the directory.

s3.png

  • Symbolic link has been created successfully.

s4.png

Now let’s see how to create a symbolic link for a directory,

  • I want to create the symbolic link for the directory, ‘symbolicFolder’.

s5.png

  • You can see that a new directory has been created.

s6.png

  • It contain the file too.

s7

If we do any update to the symbolic link, it will change the original file/ directory as well.

HOW TO COPY A FILE WITHOUT CHANGING IT’S TIME?

Normally when we copy a file to another location it will save last modified time as the time when it is copied. But using this method you can copy a file without changing it’s original date and time and other information.

s10.png

HOW TO CHANGE THE OWNER AND THE GROUP OF A FILE?

Normally when the file, directory is created it assigns it’s owner and the group. But what if we want to change it later?

  • This shows that the present owner and the group as ‘vimukthi’.

a1.png

  • Now let’s try to change it. This has to be done by the root. So that we are using ‘sudo’ command as well.

100.png

  • After giving the password, it’s successful.

1.png

  • Owner has been changed successfully. The new owner is ‘root’.

1.png

Now let’s see how to change the group,

  • This has to be done by the root too. So that we are using ‘sudo’ command as well.

101.png

  • Group has been changed successfully. The new owner is ‘root’.

102.png

From this text I brought you some important commands in LINUX. Hope it would be a help to you all. Hope to see you soon with another important topic. Thank You!

Advertisements

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