Charles Maggs‎ > ‎Vocation‎ > ‎Links‎ > ‎Linux resources (current)‎ > ‎

Command line and scripting techniques

  • FILE PROCESSING
    • Remove non-ASCII characters from a file:  tr -cd '\t\n[:print:]' < SOURCE_FILE > TARGET_FILE
  • MOUNTS AND SYMBOLIC LINKS
    • Mount part of a mounted filesystem to another mount point:  mount -o bind /DIR_TO_MOUNT /NEW_MOUNT_POINT; e.g. "mount -o bind /mtd0/opt/ /opt/" mounts the /mtd0/opt/ directory on the mounted /mtd0 filesystem to the /opt directory