LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2013, 04:54 PM   #1
mainmina
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
VI editor


what does ln comman mean in linux?
 
Old 10-12-2013, 05:05 PM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
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).
 
Old 10-12-2013, 05:08 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
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.
 
Old 10-12-2013, 07:40 PM   #4
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
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
 
Old 10-12-2013, 10:36 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 10-12-2013 at 10:39 PM.
 
Old 10-13-2013, 02:28 AM   #6
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
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
 
Old 10-13-2013, 03:38 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 10-13-2013, 10:11 AM   #8
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
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
 
Old 10-13-2013, 10:16 AM   #9
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by John VV View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] return text from geany or other editor to IDE after saving and closing the editor mtdew3q Programming 4 05-15-2013 10:40 PM
[SOLVED] Need disk editor, not file editor Dafydd Linux - General 7 05-19-2012 01:10 PM
LQ is Looking for a News Editor and a Content Editor jeremy Linux - News 7 05-18-2012 11:58 PM
linux distro / photo editor / music editor of choice ?? expatcanuck Linux - Newbie 1 05-04-2009 05:24 PM
LXer: Open Movie Editor: Linux Video Editor with Plot Twists LXer Syndicated Linux News 0 10-27-2008 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration