Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Am pretty sure that most of the commands in Linux does caching of information. where it does the caching, is it will be human understandable ?? Any persuasion is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! sathiya's Avatar
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    97

    cache of commands, du -sh, find, grep


    Hi,

    Am pretty sure that most of the commands in Linux does caching of information.

    where it does the caching, is it will be human understandable ??

    Any persuasion is appreciated.

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    The history of commands you have run is located in ~/.bash_history. This maybe different if you are not using the bash shell.

  3. #3
    Just Joined! sathiya's Avatar
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    97
    sorry, if am not clear already

    actually my question is not about history, it is about cache.

    History
    Which you are speaking about the commands which i have executed already can be again got by using the navigation keys.

    Cache
    Which i am telling is, the result of the command is cached, and it is given while executing the next time.
    Example:
    when you execute du -sh ~, it takes 3 minutes and tells that your home directory is 4.3 GB at first time, and from then onwards for some time it will tell 4.3 with in some 1 or 2 seconds, in the next executions ???? how it is ???

    And for how much time the cache will be used ?? this is my question?? GOT IT ???

Posting Permissions

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