answersLogoWhite

0


Best Answer

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 ~/.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How would you write a command which would securely copy your bashrc file from a remote computer to your home directory on your local computer?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you use scp to copy your bashrc file from plum to the local system?

scp plum:.bashrc .bashrc


How would you use scp to copy your bashrc file from bravo to the local system?

scp bravo:.bashrc .bashrc


How do you change the current directory to 'etcjavabin' and append this path to existing PATH settings?

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".


Is the hidden file in the users home directory that is the configuration file for bash is bash profile?

The bash shell uses a hidden file called .bashrc for settings in the shell upon startup.


How would you use scp to copy your file to from the system named plum to the local system?

scp plum:.bashrc .bashrc


Where can one find sample bashrc files?

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.


How do you Use scp to copy your bashrc file from bravo to the local system?

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).


How would use scp to copy bashrc file from bravo to the local system uld?

Scp user@bravo:-r your@home:blank


How do you make a Linux environment variable from a file name in Dolphin?

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.


Are file permissions considered a bit mask?

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.


How do you set Linux aliases for hard to remember commands?

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'