Rename file in terminal users

co flag
(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?

Liso avatar
sd flag
`/Users` indicated you may be running OS X, have you try with root ? Refer to [this](
in flag
The `/Users/Shared` directory is certainly seen on MacOS. Are you accessing this directory via a Samba share?
raj avatar
cn flag
What does `ls -l` show?
ro flag
  • 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

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.