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

The name of the pictureThe name of the pictureThe name of the pictureClash 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










share|improve this question





















  • If you want to read it, you say sudo cat /etc/udhcpd.conf.
    – NickD
    Sep 27 at 15:30














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










share|improve this question





















  • If you want to read it, you say sudo cat /etc/udhcpd.conf.
    – NickD
    Sep 27 at 15:30












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










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 27 at 15:28









Jan Hus

1556




1556











  • 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















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










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.






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer


























      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.






      share|improve this answer
























        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.






        share|improve this answer














        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.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 28 at 13:08

























        answered Sep 27 at 15:32









        NickD

        1,6171312




        1,6171312



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)