

Will first check whether the file exists. It will update the file in the destination folder.Ĭp -n spacespace

If a file with the same name happens in the destination, then it will force the copy process by deleting the destination file.Ĭp -i spacespaceĭisplay the warning message before proceeding with the copy process.Ĭp -u spacespace The above command copies the file extension and keeps at the location/dir with the same name file.Ĭp -f space space Syntax: cp filename.extension /dir/filename.extension. The command used to copy a file in Linux. Typing the "cd -" command will take you back to "/home". This command used to display all the content in a folder or directory.Ĭommands take you back to the previous location.įor example, If you were at "/home" but you moved to "/dir". You can download PuTTY to connect with the Linux server. We’d handpicked a list of basic PuTTY commands, their options, and usage in this guide. Basic (PuTTY) SSH commands are helping you navigate and work efficiently with the files in the Linux terminal.
