Announcement

Collapse
No announcement yet.

Find Previous Commands

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Find Previous Commands

    when i clic in the search ,
    i can search gest by some subject----that works fine for me
    but above it, existe an option called advanced search, when i go to it i try to search by user,
    and i get no result --- so why it happens

    and one finnal question,
    in te terminal i have observed one thing:: when i clic in the upward arrow i see the previously typed commands, and i think that all the previously typed commands are saved somewhere in some file.
    but where is that file ??

    #2
    Find Previous Commands

    i think that all the previously typed commands are saved somewhere in some file.
    but where is that file ??
    They are in the file
    Code:
    /home/<your-name>/.bash_history
    where <your-name> stands for your username. This file has the shorter name "~/.bash_history", where "~" stands for
    Code:
    /home/<your-name>
    which saves poor typists like me lots of time.

    Comment


      #3
      Find Previous Commands

      somebody could answer the other questions??

      Comment


        #4
        Find Previous Commands

        Originally posted by electropc
        and one finnal question,
        in te terminal i have observed one thing:: when i clic in the upward arrow i see the previously typed commands, and i think that all the previously typed commands are saved somewhere in some file.
        but where is that file ??
        The 'history' of commands typed in the console are stored in ~/.bash_history. If you want to learn more, open a console and type man bash
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Find Previous Commands

          Originally posted by askrieger
          i think that all the previously typed commands are saved somewhere in some file.
          but where is that file ??
          They are in the file
          Code:
          /home/<your-name>/.bash_history
          where <your-name> stands for your username. This file has the shorter name "~/.bash_history", where "~" stands for
          Code:
          /home/<your-name>
          which saves poor typists like me lots of time.
          thanks a lot for you answer.
          but i have one more question: for example, looking in the folder /home/<your-name>/ i tried to find by the eye that file and i wasnt seeing it, and i tried then to find it by the searcher of the dolphin, when i firstly tried i writted gest : bash, and the there were no result but when i writted all the name ::: .bash_history it have been found. so why the search tool is so sensitive

          Comment


            #6
            Find Previous Commands

            Originally posted by electropc
            but when i writted all the name ::: .bash_history it have been found. so why the search tool is so sensitive
            Linux is very specific with regards to file/directory naming, including case (upper and lower). As to 'seeing' the .bash_history file, as well as any other 'dotted' files ('dotted' means the file begings with a period ( . )), while in a console, just type:
            Code:
            ls -all
            It seems that you do not have a basic grasp/understanding of the basic commands used in console. You may benefit greatly by obtaining a good book on the subject. One that I have is "Learning the bash Shell" Second Edition, published by O'Reilly.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Find Previous Commands

              hi,

              but is there a way to make the search tools less sensitive??
              in windows the search tool is not so sensitive, i would like to have like windows search engine in linux, so is there some tools or some way to make the search engine less sensitive

              and how about the other questions, nobody is able to aswer them

              Comment


                #8
                Find Previous Commands

                When you use Dolphin for searching files you must work with asterisks. When you write *bash, you will find all files which name ends with bash, when you write bash* you will find all files which name begins with *, when you write *bash*, you will find .bash_history. Default * finds all files. The same alghoritm used old windows command line.
                The tool where you don't need to work with asterisks is for example Krusader. But it's so simple to use asterisks when you learn it, that it is not necessary to switch to another file manager for that reason.
                Kubuntu 16.04 on two computers and Kubuntu 17.04 on DELL Latitude 13

                Comment

                Working...
                X