Outline ·
[ Standard ] ·
Linear+
what is $ in Linux Ubuntu?, why every line also have this
TSk town shit
|
Dec 28 2019, 05:10 PM, updated 5y ago
|
|
I searched for a while in the Internet, but I didn't see the explanation about it. Can somebody please tell me what is $ used for? Like the Terminal screen: CODE suzy@suzy-MacBookAir:/$ Why every line must begin with $Second thing, If somebody asked me to run as root, what does he means? This post has been edited by k town shit: Dec 28 2019, 05:10 PM
|
|
|
|
KrankZ
|
Dec 28 2019, 05:22 PM
|
Getting Started
|
no money no code
|
|
|
|
TSk town shit
|
Dec 28 2019, 11:05 PM
|
|
QUOTE(KrankZ @ Dec 28 2019, 04:22 PM) Serious please
|
|
|
|
WongGei
|
Dec 28 2019, 11:06 PM
|
|
Ignore the $ For root user, you have to add 'sudo' at the front of each command. Example 'sudo ls' , 'sudo fdisk -l'
|
|
|
|
TSk town shit
|
Dec 29 2019, 12:31 AM
|
|
QUOTE(WongGei @ Dec 28 2019, 10:06 PM) Ignore the $ For root user, you have to add 'sudo' at the front of each command. Example 'sudo ls' , 'sudo fdisk -l' How I know I'm a root user? I have only one user in my machine, I'm the only one who is using it. Ubuntu is quite Programmer-friendly only , please help
|
|
|
|
fat16
|
Dec 29 2019, 10:52 AM
|
|
QUOTE(k town shit @ Dec 29 2019, 12:31 AM) How I know I'm a root user? I have only one user in my machine, I'm the only one who is using it. Ubuntu is quite Programmer-friendly only , please help CODE $ whoami mx $ sudo su [sudo] password for mx: root@mx:/home/mx# whoami root root@mx:/home/mx# exit exit mx@mx:~
command promp change from $ to #, the color too
|
|
|
|
syaifau
|
Dec 29 2019, 11:00 AM
|
New Member
|
$ means nothing..
it is just a way for the OS to indicate which type of user account u r running as; admin or normal user account. So you dont have to type "whoami" just to find out your current privilege. $ usually used for normal user account # indicate a root account
This $ and # symbol is set within the ENV profile for user/root account and can be changed to other symbol/anything if preferred.
|
|
|
|
TSk town shit
|
Dec 29 2019, 11:37 AM
|
|
QUOTE(fat16 @ Dec 29 2019, 09:52 AM) CODE $ whoami mx $ sudo su [sudo] password for mx: root@mx:/home/mx# whoami root root@mx:/home/mx# exit exit mx@mx:~
command promp change from $ to #, the color too Thanks thanks QUOTE(syaifau @ Dec 29 2019, 10:00 AM) $ means nothing.. it is just a way for the OS to indicate which type of user account u r running as; admin or normal user account. So you dont have to type "whoami" just to find out your current privilege. $ usually used for normal user account # indicate a root account This $ and # symbol is set within the ENV profile for user/root account and can be changed to other symbol/anything if preferred. Thanks thanks
|
|
|
|