Transferring the file through ssh would keep it secure. There are many options; A few examples are listed below. Run 'man <program name>' for the full program manual.
sftp - secure file transfer program
$ sftp user@host:.bashrc ~/.
rsync - a fast, versatile, remote (and local) file-copying tool
$ rsync user@host:.bashrc ~/.
scp - secure copy (remote file copy program)
$ scp user@host:.bashrc ~/.
scp plum:.bashrc .bashrc
scp bravo:.bashrc .bashrc
To change the current directory to /etc/java/bin, use the command "cd /etc/java/bin".To add the above path to the PATH variable, type export PATH="$PATH:/etc/java/bin".To check whether you have successfully added that PATH, type "echo $PATH".To permanently add /etc/java/bin to PATH variable, edit /etc/profile or ~/.bashrc file and add the command, export PATH="$PATH:/etc/java/bin". (NOTE: After adding, you will need to reboot the machine or type "source /etc/profile" or "source ~/.bashrc".
The bash shell uses a hidden file called .bashrc for settings in the shell upon startup.
scp plum:.bashrc .bashrc
There are a wide variety of online sites which contain samples of ".bashrc" files. The web domains "UbuntuForums" and "BashScripts," for example, contain these samples.
scp 1@bravo:2 3 where 1 is username which is allowed to read copied file on bravo; 2 is the full path on bravo to the copied file (relative path defaults to user's home directory on bravo); 3 is the path on local system to store the copied file (or, a dot, to have it stored into current directory, preserving the name of copied file).
Scp user@bravo:-r your@home:blank
Depends on the kind of variable it is, you may have to use the command-line for this. For the most part, if you just want to apply the variable only to the current user, you can just edit your bashrc (or whatever-sh-rc for which shell you use) with any graphical text editor, save, then relog.
a bit mask is the subtracted value that would allow you to obtain the actual file permission. For example, consider that a file permission of 777 gives everyone full permissions You want the default file permission for all files created to be 755 You would then set your umask value to 022 Think about it in binary. File permissions consist of three 3-bit numbers, whose values can range from 000 (decimal 0) to 111(decimal 7) 111 111 111 (full permissions, or, 777) -000 010 010 (subtract bit mask of 022) ------------------- 111 101 101 (actual file permissions 755) your default bit mask on linux is set in either /etc/bashrc or /etc/profile. If you want to set it for a single person, you could do it in your .bashrc or .profile in your home directory.
edit ~/.bashrc file and add the alias you want : some more usefull aliases : alias l='ls -la' alias ls='ls --color=auto' alias dir='dir --color=auto' alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto'