Posts

Showing posts from July, 2017

How to remove a milion files on Linux?

Normally, I used to  rm  command to remove file on Linux. Today, I must to remove more a milion files, do you use rm command to do this??? The answer for this question to be "NO". After I have Googled and the solution for this issue you try to use "rsync" command. rsync -a --delete /tmp/empty /tmp/session/ Wonderful, I removed more a milion files smoothly.... Which is the fastest? rm: deleting millions of file is a no-can-do! find -exec: an option, but slower! find -delete: fast and easy way to remove loads of files. rsync --delete: without doubt the quickest!

Run/Open VSCode from terminal in MacOS

Image
Open Visual Studio Code and press  Command  +  Shift  +  P  then type  Shell  in command palette now you are able to find this option like  Shell Command : Install code in PATH  from suggested list in command palette. Select that options.