Profile
Achievement
jonhenshaw's Recent Bash Snippets
- All /
« Prev 1 Next »
Line 6 starts a loop (which ends with line 15). The ls command returns a list of filenames which are sequentially assigned to the shell variable x. The if test (lines 8 through 10) checks to see if the current filename is that of a plain file. If not...
0
912
posted 15 years ago by jonhenshaw
Good info here too: http://www.ilisys.com.au/support/linux-password-protect/
2
1328
posted 16 years ago by jonhenshaw
Over time, your Mac's Mail program can start to feel sluggish because, like any database, over time it needs to optimized.
4
817
posted 16 years ago by jonhenshaw
Enter this command in Terminal to restart Apache. Especially useful after you've made changes to the hosts file.
2
794
posted 16 years ago by jonhenshaw
Run this command in the Terminal on Mac OS X to flush the DNS cache on your computer. This is especially helpful when making changes to the host file.
2
1212
posted 16 years ago by jonhenshaw