How to create a link to a directory on linux [closed]

Symbolic or soft link (files or directories, more flexible and self documenting) # Source Link ln -s /home/jake/doc/test/2000/something /home/jake/xxx Hard link (files only, less flexible and not self documenting) # Source Link ln /home/jake/doc/test/2000/something /home/jake/xxx More information: man ln /home/jake/xxx is like a new directory. To avoid “is not a directory: No such file or … Read more

How to use ‘cp’ command to exclude a specific directory?

rsync is fast and easy: rsync -av –progress sourcefolder /destinationfolder –exclude thefoldertoexclude You can use –exclude multiples times. rsync -av –progress sourcefolder /destinationfolder –exclude thefoldertoexclude –exclude anotherfoldertoexclude Note that the dir thefoldertoexclude after –exclude option is relative to the sourcefolder, i.e., sourcefolder/thefoldertoexclude. Also you can add -n for dry run to see what will be … Read more

How do I ignore files in Subversion?

(This answer has been updated to match SVN 1.8 and 1.9’s behaviour) You have 2 questions: Marking files as ignored: By “ignored file” I mean the file won’t appear in lists even as “unversioned”: your SVN client will pretend the file doesn’t exist at all in the filesystem. Ignored files are specified by a “file … Read more

Run Command Prompt Commands

this is all you have to do run shell commands from C# string strCmdText; strCmdText= “/C copy /b Image1.jpg + Archive.rar Image2.jpg”; System.Diagnostics.Process.Start(“CMD.exe”,strCmdText); EDIT: This is to hide the cmd window. System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(); startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; startInfo.FileName = “cmd.exe”; startInfo.Arguments = “/C copy /b Image1.jpg + Archive.rar … Read more

What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in Vim?

remap is an option that makes mappings work recursively. By default it is on and I’d recommend you leave it that way. The rest are mapping commands, described below: :map and :noremap are recursive and non-recursive versions of the various mapping commands. For example, if we run: :map j gg (moves cursor to first line) … Read more