Today I Learned - Rocky Kev

TIL copy without overriding in command-line

POSTED ON:

TAGS:

Today I learned you can copy files without overriding!

If there's a naming collision occurs and the -n flag is present, the copy command does nothing!

The cp command has a -n flag that you can use to prevent the copied file from overriding another file if one with the same name exists

via https://til.hashrocket.com/posts/0runelrmcp-copy-without-overriding-existing-files


Related TILs

Tagged:

TIL using the find command

find [path] -user [username] [options]

TIL Find Command

I wanted to look for files with a specific extension. You can do that with ls *.(mp3|exe|mp4)

TIL playing Tetris inside Zsh

If you're using a Mac, you're probably using iTerm. 1. Load iTerm 2. launch emacs. 3. Launch Tetris.