Results 1 to 2 of 2

Thread: the touch command and network manager

  1. #1
    Join Date
    Jan 2011
    Beans
    7
    Distro
    Ubuntu 10.10 Maverick Meerkat

    the touch command and network manager

    This probably isn't really supposed to go in this forum but... should be a quick one.

    I was just wondering why in this old thread http://ubuntuforums.org/showthread.php?t=819726

    the user utilizes the touch command on the network manager config files?

    What is the point of changing the timestamp or is this actually creating those files?

    Thanks!

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,661
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: the touch command and network manager

    Hi kestrel_

    It's hard to say how things worked back then, but it seems 'touch' is used to created an empty file (since right now those files don't exist).

    You can do both create a file and put a line command at the same time:
    Code:
    echo "hello" > ./file.txt
    If you want to do it so the file end up owned by root, it is a little different:
    Code:
    sudo bash -c 'echo "hello" > ./otherfile.txt'
    Does that help?
    Regards.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •