Linux Operating System (MOSC)

MOSC Banner

can an LS command be cached ?

edited May 4, 2023 11:01PM in Linux Operating System (MOSC) 4 commentsAnswered ✓

Question, on an Oracle Linux (7), is it possible that an LS command's output is cached ?

More in detail: we have a performance issue when using the LS command in certain directories. I check this by using TIME:

time ls -l


The returned times vary a lot, and that makes me wonder if caching is involved here or not ? Is this kind of command EVER cached actually ? Or it is reading the Filesystem data EVERY time I use the LS command (as what I think) ?

I suspect the variations to be caused by actual other use at the moment. Note the returning times may exceed 1 hour, to give some idea of the level of issue involved here.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center