Thank you.
The "./boo" worked. But I thought "./" was implied.
I thought by default "./boo" = "boo".
Now, I can move on to the next section. Guess I will use "./" when I am a superuser mode.
Thank you.
The "./boo" worked. But I thought "./" was implied.
I thought by default "./boo" = "boo".
Now, I can move on to the next section. Guess I will use "./" when I am a superuser mode.
So, how do I go back to my home directory.
On the command prompt is says I am at:
root@ubuntu:/home/bun/bin
When I "ls" in that directory I see all my files and also "boo".
But when I type "boo" in the command prompt I still get:
boo: command not found
I am stuck, think I am missing something very simple.
Hi, I am new.
I have a simple question.
On Ubuntu, I made a script:
#!/bin/bash
if [ "$(id -u)" = "0" ]; then
echo "superuser"
else
echo "no"
fi
I called the file "boo".
When I run "boo" as a regular user it says "no". But when I sudo su it, it says "boo" is not a command. So, how do I make it output "superuser".
Hope this make sense.
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board