Syntax: >mergedfile.txtĪllow you to read the first ten lines of the content available inside the folder. It is also used to concatenate two files. It also copy standard input to standard output.Ĭat command also allows scrolling if the displayed text doesn't fit the screen completely.Ĭat command also used to create a new file. To display content of a file on the screen. Remove command will delete a file from a server.ĭelete all the files or content in a directory.ĭelete the folder as well as the folders inside it. The extension helps to create a file extension without any extension. This command creates a new file with any extension you want like text, HTML, PHP, etc. "mv filename.extension /dir/filename1.extension” is used to move and rename a file. (Syntax: mv filename.extension /dir/filename.extension) This command moves the file from one place to another. It don't overwrite the file again.Ĭp -a spacespace 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.