Skip to main content
  • Home
  • About
  • Contact
jeffm.info
  • Family History
  • Photos
  • Notes
Home

command line

Change file permissions recursively on directories, or files, only

find . -type d -exec chmod xxx {} \; this finds all directories (excluding files) starting at present working directory and recursively changes permissions to xxx.

  • command line
  • sysadmin
  • Add new comment
  • Read more

Rescursively deleting directories

find /path -name "directoryname" -type d -exec rm -rf {} \;

this searches a path for a directory (named directoryname) and deleted all directories and their contents.

  • command line
  • Linux
  • Add new comment

Search

Family History

  • People
  • Photos
  • Browse by type
  • Timeline

Photos

  • Binda
  • Coppi
  • Huang Huang
  • Pepper
  • Landscape
  • Black and White
  • Other

Navigation

  • My bookmarks

Home   About   Contact

Syndicate content