LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VI editor (https://www.linuxquestions.org/questions/linux-newbie-8/vi-editor-4175480554/)

mainmina 10-12-2013 04:54 PM

VI editor
 
what does ln comman mean in linux?

Robhogg 10-12-2013 05:05 PM

ln creates a link to a file or directory - see the bottom of this page for a bit on links.

You can get information about Linux commands by typing man command or info command (in this case info ln).

astrogeek 10-12-2013 05:08 PM

See man ln

It is used to create and delete symbolic and hard links to files or other filesystem locations.

With respect to the Vi editor, many (most) GNU/Linux distros come with Vim instead of Vi, and they symlink the name 'vi' to the editor executable /usr/bin/vim instead. As a result you can run the command vi and end up using vim. Vim itself looks at how it was invoked and changes it's behavior accordingly, so that if invoked as vi via the symlink, it will behave much as if it actually were vi. If it is invoked as vim it will become a fully functional Vim instance.

jmc1987 10-12-2013 07:40 PM

Think if your using windows and install an application and it says "Add shortcut to desktop" Thats pretty much the ln command.

for more detail
Code:

$ man ln

John VV 10-12-2013 10:36 PM

the Microsoft "shortcut" is nothing like a unix Link

you can link two text files
and if you edit one you edit the other because they ARE the same file
you can NOT do that with a Microsoft "shortcut"

however the question is
Quote:

ln comman mean
what dose " in comman " ????
is that "in common "?????
-- what dose in common mean ??
who knows ?

if it is the "ln" ( el en / link ) and command
then see
Code:

man ln

AnanthaP 10-13-2013 02:28 AM

To add to what John said (in post #5), with the "ln commna" you are actually linking a second name to the same physical file (known by it's inode). The linked name has a separate entry in the file system (or across file systems in symlink) and this can have entirely different rights properties, securities etc.

I wonder why the OP gave the tile as vi editor?

OK

John VV 10-13-2013 03:38 AM

Quote:

I wonder why the OP gave the tile as vi editor?
it is a one post one line post "wonder "

i think that they are badly wrote bots ? but that is an opinion

Firerat 10-13-2013 10:11 AM

I think "ln comman" is meant to be "ln command"

no idea what it has to do with vi{m}

and yes, it is one of those pointless questions that a search engine can answer
even with the typo
https://startpage.com/do/search?q=wh...an+in+linux%3F
the answer is there

andrewthomas 10-13-2013 10:16 AM

Quote:

Originally Posted by John VV (Post 5044784)
it is a one post one line post "wonder "

i think that they are badly wrote bots ? but that is an opinion

Ha. And to think that I clicked on this thread to tell the OP to just use nano.


All times are GMT -5. The time now is 05:49 PM.