
how to make a random post list on your sidebar:
<ul>
<?php $myq = new WP_Query('showposts=10&orderby=rand'); if($myq->have_posts()) : while($myq->have_posts()) : $myq->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; endif; ?>
</ul>

Determine how many files there are in the current folder/directory:
many ways ;)
1. list files and folders:
[root@server1]# du -a /folders/test | cut -d/ -f2 | sort | uniq -c | sort -nr
17616 data
2. list files and folders
[root@server1]# ls -Ra1 /folders/test|grep -v ...

Aside
Written by The Weakerthans and John K. Samson
Performed by The Weakerthans
Courtesy of Hopeless Records/G7 Welcoming Committee Records
Celebrity Judges
Written by R. Cronholm and M. Weinberg
Performed by Crumb
Courtesy of Qwest Records
By Arrangement with Warner Strategic Marketing
I Hope Tomorrow Is Like Today
Written by ...

1. ls -d */
2. ls -l | grep “^dâ€
3. find -L -maxdepth 1 -type d -name “*†! -name “.*†-printf “%f\nâ€
4. find -L -maxdepth 1 -type d -name “*†! -name “.*â€
5. find -type d

1. ls -d */
2. ls -l | grep "^d"
3. find -L -maxdepth 1 -type d -name "*" ! -name ".*" -printf "%f\n"
4. find -L -maxdepth 1 -type d -name "*" ! -name ".*"
5. find -type d