Skip to content

Instantly share code, notes, and snippets.

@besirkurtulmus
Last active May 15, 2018 06:30
Show Gist options
  • Save besirkurtulmus/c0de3aae1cc44c7befc4a203ef5050a1 to your computer and use it in GitHub Desktop.
Save besirkurtulmus/c0de3aae1cc44c7befc4a203ef5050a1 to your computer and use it in GitHub Desktop.
Useful UNIX commands I've collected over the years

1. For Linux

1.1 Copy file/folder from non-FAT32 to FAT32 system and rename invalid characters on the go

Install it first:

sudo apt-get update
sudo apt-get install pax

Copy files/folers with:

pax -rw -s '/[?<>\\:*|\"]/_/gp' <source_file_or_dir> <dest_dir>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment