LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-06-2013, 02:59 AM   #1
TechJay
LQ Newbie
 
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27

Rep: Reputation: Disabled
Symbolic links and piping info...


So i created a symbolic link...
Code:
ln -s /sbin/ifconfig ifconfig
And i want to "pipe" this output onto a file i made in /home/jb/data called mydata.txt

Im not sure what it is called in linux but in programming (perl and java) its piping/ file io, i guess append ? How would i do this ? Thanks !

ifconfig >> mydata.txt ?

dont want to overwrite the 2 lines i have in there btw


Last edited by TechJay; 03-06-2013 at 03:02 AM.
 
Old 03-06-2013, 03:03 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
I don't know why you created the link; ifconfig works for me as a non-root user...

Anyway, its not piping into a file, its redirection; in fact 'output to ...' eg
Code:
ifconfig >/home/jb/data/mydata.txt
Here's some good links for bash and related stuff.
http://rute.2038bug.com/index.html.gz
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/
 
1 members found this post helpful.
Old 03-06-2013, 03:06 AM   #3
TechJay
LQ Newbie
 
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27

Original Poster
Rep: Reputation: Disabled
thanks for the links...ive been reading a little... the link ws required in the practice asgn im doin
 
  


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
symbolic links _Linux_Learner Linux - Newbie 2 02-26-2010 04:39 PM
symbolic links jjanes Linux - Newbie 1 06-19-2009 03:01 PM
Symbolic links Vs Hard links sulekha Linux - General 2 10-02-2008 08:03 AM
Symbolic Links petercool Linux - General 2 08-20-2003 12:15 PM
Symbolic links Valerie Linux - Newbie 12 03-31-2002 02:49 AM


All times are GMT -5. The time now is 02:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration