-3
(base) sne_jojo_g@jojoG /Users % ls
Shared      sne_jojo_g
(base) sne_jojo_g@jojoG /Users % mv sne_jojo_g jojoG 
mv: rename sne_jojo_g to jojoG: Operation not permitted

I want to rename the sne_jojo_g in sne_jojo_g@jojoG and also the sne_jojo_g file in User, how should I do it?

muru
  • 197,895
  • 55
  • 485
  • 740

1 Answers1

0
  • to change prompt in bash you, you should change the variable called PS1 like that:
$ PS1="[\u@\h:\w ] $ "

and put this var in config in ~/.bashrc too.

  • to rename your user folder and login, look this answer
$ sudo usermod -l newUsername oldUsername
$ sudo usermod -d /home/newHomeDir -m newUsername