LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-08-2010, 02:42 AM   #1
ramadas88
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Rep: Reputation: 0
create soft link and hard link in RHEL5


hi


how can we create soft link and hard link in RHEL5

when am using in command it is giving format error

Please help me

Thanks in advance
 
Old 09-08-2010, 03:06 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by ramadas88 View Post
hi


how can we create soft link and hard link in RHEL5

when am using in command it is giving format error

Please help me

Thanks in advance
what command you entered for symbolic(soft) link and hard link? and also post exact error which you faced.

BTW

for softlink

Code:
# ln -s source_file link_file
for hardlink

Code:
# ln source_file link_file
also read man page of ln command
 
Old 09-08-2010, 03:07 AM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,418
Blog Entries: 33

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
The link command is normally formatted for soft links like:
Code:
ln -s <path to file or folder> <target directory>
For hard links they only work on file paths and data which are located on the same drive. It does not work on folders in all versions of ln or link.
Code:
ln <path of original file> <target file path>
Well you could try "man ln" to see how the command is supposed to be formatted. My link command is located in /bin/ln so you may want to check you're using the correct ln with "whereis ln".
 
Old 09-10-2010, 05:28 AM   #4
ramadas88
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Original Poster
Rep: Reputation: 0
thanks for Your replay
Sorry i will update you monday
 
Old 09-13-2010, 01:43 AM   #5
ramadas88
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Find the command i used

[root@server ~]# vi test
[root@server ~]# in test test2
bash: syntax error near unexpected token `in'
[root@server ~]# in -s test test2
bash: syntax error near unexpected token `in'
[root@server ~]# in -s test test2

Please help me
 
Old 09-13-2010, 02:04 AM   #6
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: slackware 13.1, Centos 5.5, Ubuntu 10.10
Posts: 173

Rep: Reputation: 29
Smile

Quote:
Originally Posted by ramadas88 View Post
Find the command i used

[root@server ~]# in test test2
bash: syntax error near unexpected token `in'
U should use ln (Small letter L), you are using 'in' which is wrong.
 
1 members found this post helpful.
Old 09-15-2010, 04:32 AM   #7
ramadas88
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Original Poster
Rep: Reputation: 0
thanks .......


its works,i got misunderstood as there is also command 'in'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Difference Between Soft Link & Hard Link rajaniyer123 Solaris / OpenSolaris 16 09-30-2012 03:42 AM
Create a link(Soft or hard) malickhat Linux - Newbie 1 01-30-2010 07:12 AM
hard link and soft link varunrapelly Linux - Newbie 9 10-02-2008 07:05 AM
An error while trying to create a soft link g_trueblood Slackware 4 10-07-2005 12:17 PM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 06:30 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration