Why I cannot access udhcpd.conf and getting âcommand not foundâ insteaad??

Clash Royale CLAN TAG#URR8PPP
up vote
-2
down vote
favorite
My objective is to to access /read udhcpd.conf file.
pi@pi:/ $ sudo /etc/udhcpd.conf
sudo: /etc/udhcpd.conf: command not found
I did check and the file exists.
I would hope I would get some kind of error indication if it did not. But that is not an issue for now.
The only way I can read the file is opening it in in editor. I use nano.
Now the file is read only , which is OK.
My question is - why is the OS telling me "command not found".
I am guessing there is some parameter / option in file itself stopping the OS to let me open it.
Here is the relevant output from OS
pi@pi:/etc $ udhcpd.conf
-bash: udhcpd.conf: command not found
pi@pi:/etc $ nano udhcpd.conf
pi@pi:/etc $ sudo udhcpd.conf
sudo: udhcpd.conf: command not found
pi@pi:/etc $
My OS
Linux pi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018 armv7l GNU/Linux
linux shell-script
add a comment |Â
up vote
-2
down vote
favorite
My objective is to to access /read udhcpd.conf file.
pi@pi:/ $ sudo /etc/udhcpd.conf
sudo: /etc/udhcpd.conf: command not found
I did check and the file exists.
I would hope I would get some kind of error indication if it did not. But that is not an issue for now.
The only way I can read the file is opening it in in editor. I use nano.
Now the file is read only , which is OK.
My question is - why is the OS telling me "command not found".
I am guessing there is some parameter / option in file itself stopping the OS to let me open it.
Here is the relevant output from OS
pi@pi:/etc $ udhcpd.conf
-bash: udhcpd.conf: command not found
pi@pi:/etc $ nano udhcpd.conf
pi@pi:/etc $ sudo udhcpd.conf
sudo: udhcpd.conf: command not found
pi@pi:/etc $
My OS
Linux pi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018 armv7l GNU/Linux
linux shell-script
If you want to read it, you saysudo cat /etc/udhcpd.conf.
â NickD
Sep 27 at 15:30
add a comment |Â
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
My objective is to to access /read udhcpd.conf file.
pi@pi:/ $ sudo /etc/udhcpd.conf
sudo: /etc/udhcpd.conf: command not found
I did check and the file exists.
I would hope I would get some kind of error indication if it did not. But that is not an issue for now.
The only way I can read the file is opening it in in editor. I use nano.
Now the file is read only , which is OK.
My question is - why is the OS telling me "command not found".
I am guessing there is some parameter / option in file itself stopping the OS to let me open it.
Here is the relevant output from OS
pi@pi:/etc $ udhcpd.conf
-bash: udhcpd.conf: command not found
pi@pi:/etc $ nano udhcpd.conf
pi@pi:/etc $ sudo udhcpd.conf
sudo: udhcpd.conf: command not found
pi@pi:/etc $
My OS
Linux pi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018 armv7l GNU/Linux
linux shell-script
My objective is to to access /read udhcpd.conf file.
pi@pi:/ $ sudo /etc/udhcpd.conf
sudo: /etc/udhcpd.conf: command not found
I did check and the file exists.
I would hope I would get some kind of error indication if it did not. But that is not an issue for now.
The only way I can read the file is opening it in in editor. I use nano.
Now the file is read only , which is OK.
My question is - why is the OS telling me "command not found".
I am guessing there is some parameter / option in file itself stopping the OS to let me open it.
Here is the relevant output from OS
pi@pi:/etc $ udhcpd.conf
-bash: udhcpd.conf: command not found
pi@pi:/etc $ nano udhcpd.conf
pi@pi:/etc $ sudo udhcpd.conf
sudo: udhcpd.conf: command not found
pi@pi:/etc $
My OS
Linux pi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018 armv7l GNU/Linux
linux shell-script
linux shell-script
asked Sep 27 at 15:28
Jan Hus
1556
1556
If you want to read it, you saysudo cat /etc/udhcpd.conf.
â NickD
Sep 27 at 15:30
add a comment |Â
If you want to read it, you saysudo cat /etc/udhcpd.conf.
â NickD
Sep 27 at 15:30
If you want to read it, you say
sudo cat /etc/udhcpd.conf.â NickD
Sep 27 at 15:30
If you want to read it, you say
sudo cat /etc/udhcpd.conf.â NickD
Sep 27 at 15:30
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
The command to read a file is cat:
cat /etc/udhcpd.conf
If you need root privileges to read it, you can get them temporarily with sudo:
sudo cat /etc/udhcpd.conf
But you still have to give a command to sudo, not just the filename.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
The command to read a file is cat:
cat /etc/udhcpd.conf
If you need root privileges to read it, you can get them temporarily with sudo:
sudo cat /etc/udhcpd.conf
But you still have to give a command to sudo, not just the filename.
add a comment |Â
up vote
0
down vote
accepted
The command to read a file is cat:
cat /etc/udhcpd.conf
If you need root privileges to read it, you can get them temporarily with sudo:
sudo cat /etc/udhcpd.conf
But you still have to give a command to sudo, not just the filename.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
The command to read a file is cat:
cat /etc/udhcpd.conf
If you need root privileges to read it, you can get them temporarily with sudo:
sudo cat /etc/udhcpd.conf
But you still have to give a command to sudo, not just the filename.
The command to read a file is cat:
cat /etc/udhcpd.conf
If you need root privileges to read it, you can get them temporarily with sudo:
sudo cat /etc/udhcpd.conf
But you still have to give a command to sudo, not just the filename.
edited Sep 28 at 13:08
answered Sep 27 at 15:32
NickD
1,6171312
1,6171312
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471861%2fwhy-i-cannot-access-udhcpd-conf-and-getting-command-not-found-insteaad%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
If you want to read it, you say
sudo cat /etc/udhcpd.conf.â NickD
Sep 27 at 15:30