Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Stupid question

    General pfSense Questions
    2
    5
    492
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cobrahead
      last edited by

      As Mr Hat would say, "…there are no stupid questions, just stupid people..."

      Let this person begin:

      How do I delete a file from the directory within pfsense? In this case it was a password file in the /etc directory which I created and no longer need. It's not hurting anything just sitting there, all data that was in the file has been deleted... but I cannot figure out how to delete the file itself.

      "PERFECTION IS THE ENEMY OF PERFECTLY ADEQUATE."

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        either ssh in and just del the file from the cmd line or sftp in and del the file would be the best way, or you could do the command from the diagnostic command line menu item

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 23.05 | Lab VMs CE 2.6, 2.7

        1 Reply Last reply Reply Quote 0
        • C
          cobrahead
          last edited by

          @johnpoz:

          either ssh in and just del the file from the cmd line or sftp in and del the file would be the best way, or you could do the command from the diagnostic command line menu item

          Thanks johnpoz! Could you please (I feel rotten for asking this) tell me the command to delete the file? From the command line in the gui would it be /etc/rm 'file-name' ?

          "PERFECTION IS THE ENEMY OF PERFECTLY ADEQUATE."

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            yeah rm would delete the file

            Here does this help


            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 23.05 | Lab VMs CE 2.6, 2.7

            1 Reply Last reply Reply Quote 0
            • C
              cobrahead
              last edited by

              @johnpoz:

              Here does this help

              Yes! Thank you.

              "PERFECTION IS THE ENEMY OF PERFECTLY ADEQUATE."

              1 Reply Last reply Reply Quote 0
              • First post
                Last post