UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    TERMINAL FILE OF COMMAND LINES

    Scheduled Pinned Locked Moved Support
    4 Posts 2 Posters 540 Views 1 Watching
    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.
      • D Offline
        domubpkm
        last edited by domubpkm

        For users (as me), tested with Xenial.

        My method if i want to clean the file of TERMINAL in which are recorded command lines, with the phone only.

        • First, the file is .bash_history that I can see in FILE MANAGER (I must activate Show Hidden Files) under the folders when I am at HOME.

        • I Copy the file .bash_history.

        • Now i use TEDIT (of Fulvio)
          I must paste the file in
          .local/share/tedit.fulvio

        • I must delete the point of .bash_history to get a file name bash_history (if i do not this operation the file isn't seen by TEDIT).

        • I Open the file with TEDIT.

        • I can see all the command lines used and now i can delete the lines i want.

        • I record the file after the modification operations.

        • I rename the TEDIT file bash_history in
          .bash_history

        • I copy the TEDIT get file .bash_history

        • I paste the .bash_history in HOME : by this way i substitute the old file by the new file.

        Now when i open TERMINAL there are only the command lines i want.

        Maybe you can adjust the procedure.

        Good Cleaning !

        advocatuxA 1 Reply Last reply Reply Quote 0
        • advocatuxA Offline
          advocatux @domubpkm
          last edited by

          @domubpkm you can edit any text file in your terminal using for example nano 🙂

          The terminal even has a dedicated layout for it.

          (See the terminal tutorials in https://ubports.com/blog/ubports-blog-1/tag/blogs-2)

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            domubpkm @advocatux
            last edited by

            @advocatux Yes. Thanks. You right.
            What's i wrote is very basic but i hope it will be MAYBE usefull for somebody.

            advocatuxA 1 Reply Last reply Reply Quote 0
            • advocatuxA Offline
              advocatux @domubpkm
              last edited by

              @domubpkm of course. Thank you for your how-to.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post