Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...
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.
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
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.
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?
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.