LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-16-2006, 04:26 PM   #1
linux_dummy
LQ Newbie
 
Registered: Jan 2006
Location: Texas
Distribution: red hat
Posts: 11

Rep: Reputation: 0
Transferring alias files


I am trying to transfer alias files from one system to another and cannot remember how it is done. I can't ftp them as I do not have permissions set up on the site I am wanting the aliases to be transferred to. My emulation is ZOC and I can only remember that they need to be downloaded through ZOC and then uploaded onto the new site. I am at a loss as to what to do for this to be succesful. Any suggestions from the congregation?

Lance
 
Old 03-17-2006, 03:25 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what do you mean by "alias files"?
 
Old 03-17-2006, 03:29 PM   #3
linux_dummy
LQ Newbie
 
Registered: Jan 2006
Location: Texas
Distribution: red hat
Posts: 11

Original Poster
Rep: Reputation: 0
Ehh??

an alias file=a shorter version of the command.

i.e. ck=checktoday, psg=ps -ef | grep, etc.
 
Old 03-17-2006, 03:53 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I know what a bash alias is, of course i do... I've never seen a convention that dictates aliases having their own files. The closest thing to an "alias file" would be /etc/aliases, which is used by sendmail and other MTA's for email alias. Do you really think that it took 23 hours to get a reply to this without people being confused as to what you're talking about?

So you have some aliases to copy. just list them all and visually paste them into a new file i'd say. Alternatively you might just want to use sftp or something. there are a billion ways to make one file arrive on another system, just use your imagination...
 
Old 03-17-2006, 03:58 PM   #5
linux_dummy
LQ Newbie
 
Registered: Jan 2006
Location: Texas
Distribution: red hat
Posts: 11

Original Poster
Rep: Reputation: 0
there are WAY too many for me to write them down then transfer them. and as for using my imagination...i am new to this, so i am not sure how these things are done. as for the 23 hours of confusion...seems like you are the only one that spoke up. another reason i can't just copy and paste is because when i vi the alias command, it's in binary format.
 
Old 03-17-2006, 04:12 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
people pass over threads that are confusing. I deliberatly ignored this thread first time round, i am sure many others did too. anyway....

of course alias is in binary format... it's a binary command..

Code:
alias > /home/bob/my_alias_file
scp /home/bob/my_alias_file user@remote_server:/home/bob/
 
Old 03-17-2006, 04:13 PM   #7
linux_dummy
LQ Newbie
 
Registered: Jan 2006
Location: Texas
Distribution: red hat
Posts: 11

Original Poster
Rep: Reputation: 0
well, i am not familiar with any type of scripting or aliases or anything with linux...i am new to everything with linux. but i still have my sites to check on
 
Old 03-17-2006, 04:24 PM   #8
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Do you have any network access to the other system at all ? If yes please say what that access is.
Usually any command aliases you have set up are found in a file called .bashrc in your home directory.

So, in a terminal type :

cd ~
vi .bashrc


then copy the aliases

If the other system is on the/a network, then you could ssh into it.
You must have a username and password for the other system.

in a terminal on your system type :

ssh -l username ip_address_of_other_system

then enter your password when requested

you will already be in your home directory on that system, so just vi .bashrc and paste the aliases into the file. type :wq to save the file then logout.(type exit)
Next time you log in, the aliases will work.

Alternatively,

cd ~
cat .bashrc > aliases.txt

now copy aliases.txt to a floppy drive, walk across the room and read that floppy in the other system. Copy it to your home directory, log out then log in, aliases transferred.
 
Old 03-17-2006, 04:35 PM   #9
linux_dummy
LQ Newbie
 
Registered: Jan 2006
Location: Texas
Distribution: red hat
Posts: 11

Original Poster
Rep: Reputation: 0
i am able to ftp from site to site. so i was looking for a put command...but it sounds like that might be feasible. i am going to try the first one
 
Old 03-17-2006, 04:43 PM   #10
linux_dummy
LQ Newbie
 
Registered: Jan 2006
Location: Texas
Distribution: red hat
Posts: 11

Original Poster
Rep: Reputation: 0
okay, when i type alias in the command prompt, it gives me a list of the information that i am wanting on the other server. this is what i am trying to transfer. any ideas on how to do that?
 
Old 03-17-2006, 04:58 PM   #11
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
Chris' first command "alias > ..." should work fine. The > redirects the output of the alias command to a file. Then after having logged in to the remote machine your plan to use "put" should be ok.
 
Old 03-18-2006, 03:07 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i've already told you some commands that would work...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transferring files to other disk.. bschiett Linux - Newbie 3 03-24-2005 07:04 PM
Transferring 40000+ files with FTP (mget) shows 0 files tim1235 Linux - Software 5 10-17-2004 06:06 PM
IO Error when transferring files. mickey_kamer Linux - General 4 03-19-2004 09:29 AM
transferring files across a lan broxys Linux - Networking 2 06-23-2003 08:26 PM
Transferring Files From VMware? Crickit Linux - Software 5 04-17-2003 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:19 PM.

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