ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

10
Date Submitted Fri. Oct. 13th, 2006 8:03 AM
Revision 1
Scripter bertheymans
Tags chmod | linux | python | system | unix
Comments 0 comments
This python class converts a permission mask in symbolic format (the kind a diretcory listing produces, ex.: drwxr-xr-x) to a string that's usable in a chmod command.

ex.: chmod u=rwx,g=rwx,o=rwtx ~/myscripts/convert_mask.py

This can be very useful when recovering permissions from a backup.
7
Date Submitted Thu. Sep. 21st, 2006 1:25 PM
Revision 1
Scripter bertheymans
Tags bash | fun | linux | unix
Comments 0 comments
This one-liner is great, it lists the commands you have used by popularity. At present, the 'cd' command wins in my history file with 140. Followed by ls (93) and ssh (56). What are your top 3 commands

Snippet source: ibm
5
Date Submitted Mon. Aug. 14th, 2006 7:31 AM
Revision 1
Scripter bertheymans
Tags bash | linux | shell
Comments 1 comments
Recursively removes files or directories with a given name, using find.

I most frequently use it to remove 'CVS' or '.svn' directories from sourcepackages that still have the versioning information in them.