Don't ask why, but I would like to know a linux command, besides "la -laR", since that could not take that long according to where you are in the folder structure, that takes much time to complete.
|
feedback
|
|
You can also make dd run for a finite amount of time, if you specify Or, if you want to do something useful, try | |||||||||
feedback
|
|
You could also simply repeat a command forever. For instance:
| |||
|
feedback
|
|
updatedb this updates the locate database, so this is actually useful to run. | |||
|
feedback
|
|
In Bash, the Korn shell and Z shell, you can use the
or
The colon ( | |||||||
feedback
|
|
well find can run for a long time especially if you want to do specific task. Here is one command:
This will seach for files that have exactly 15 characters (in file that is) and it will scan whole HDD for it. This can be slow but if you use state of art computer then you can use other commands that can run endlessly. We can use find command in a loop:
The bad side of this command is that you are using HDD for this and if you run it often it may shorten your HDD life (im not very much HW educated so search on google for more details). My personal choice for this task would be creating a series of random characters (95 in his case) and print them using infinte loop with this command:
If you have slow pc then use sleep command to delay the output for 1s (in this case) and save up some cpu power:
| |||
|
feedback
|

sleep) And what exactly do you mean by "much time"? Some specific amount of time, or indeterminate-but-longer-than-X-seconds, or what? – David Zaslavsky Apr 16 '10 at 4:58