LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-11-2013, 03:51 PM   #1
skania
LQ Newbie
 
Registered: Jan 2013
Distribution: Linux Mint Cinnamon 1.6
Posts: 6

Rep: Reputation: Disabled
Using aliases from laptop on a sever connected by ssh


Is there any way to achieve using aliases I have set on my laptop terminal - that are saved in the ~/.bashrc - while I am ssh'ed into a Terminal ?

It generally wouldn't be a big problem, but I have several classes this semester and a separate account for each class.

Any tips on making it easier would be appreciated.
 
Old 01-11-2013, 05:02 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,582
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
Put your aliases in a separate file and source it in your .bashrc file, like this:
Code:
. aliases
If you log into one of your accounts use scp to copy it over and source it manually with the same command.
 
  


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
'Nedit : Can't open display' message in ssh sever silverDan Linux - Newbie 15 08-31-2011 03:04 AM
[SOLVED] Aliases in .bashrc file not working when I ssh from a linux box. uncle-c Solaris / OpenSolaris 5 06-11-2010 04:04 AM
Can't use aliases in non-interactive ssh command openSauce Linux - Software 2 01-08-2009 06:52 AM
access web on a laptop connected to a web-connected desktop bluesmanu Linux - Networking 2 04-16-2006 12:38 PM
connected to my server with ssh juanb Linux - Newbie 2 10-04-2005 06:17 PM


All times are GMT -5. The time now is 02:23 PM.

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