0

I've got login to another server where shell configurations are not like I would want. For example I don't see my username and CWD on prompt, and when I press arrow key, instead of giving last entered command, it gives me ^[[A. So I wonder if can just move my profile configuration from my machine to that server?

I copied .bashrc and .profile files and tried to execute them, but it didn't do anything. What should I do? Do I need some other files? Or I can only create all configurations from scratch?

1
  • The first thing to check is if the shell on the other server is what you expect. You tagged bash. Are you sure the shell is Bash? How do you know? What happens when you run exec bash -l? Is it better? the same? some error? Commented Jun 20, 2023 at 11:13

2 Answers 2

0

Actually such configuration could be in different scripts. But you should copy .profile .bash_profile and .bashrc and then logout and login.

2
  • In my machine there is only .profile and .bashrc. Also my machine output bin/bash with command echo $SHELL, and on that server bin/sh Commented May 14, 2014 at 11:29
  • bash and sh are different shells and .bashrc is for bash only. You could try passing the configuration from .bashrc to .profile and see what happens (some command may not work, of course). Or you could ask the server administrator to change your shell to bash. Commented May 14, 2014 at 11:32
0

Keyboard configuration like you mention is usually in ~/.inputrc, which you should be able to copy to most *nix machines.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.