I am running fish (Friendly Interactive Shell) as my standard terminal in Ubuntu 14.04, rather than bash.
I noticed the following behaviour and don't know, if any of these are the preferred one to gain root access.
I can type the command sudo su
or sudo fish
and it will both give me super user rights.(The prompt is displayed as root@ubuntu ~#
)
Is there any difference in the behaviour of these commands?
The only thing I could understand is, that sudo su
uses the fish configuration located in /root/.config/fish/
and sudo fish
uses the fish configuration in my home directory /home/uloco/.config/fish
.
Is there a possibility to crypt my system by using sudo fish
? Will there be any owner changes made to files in my home directory if I use this?
When you execute sudo fish, then the application fish (the shell) is executable as if you were the root user, but within the environment of the calling user. Thats why fishs rc-scripts are executed.
Which one you should use depends on you:
Is there a possibility to crypt my system by using sudo fish?
Its just the environment, you don't crypt anything.
Will there be any owner changes made to files in my home directory if I use this?
Not if you don't change something manually.