When you want to move a file from one location to another and do not want to copy it, the MV command is the first choice to complete the task.Initial knowledge of MV commandThe MV command is a command similar to CP, but it does not create
The mv command is short for moving files. it can be used to move files or rename files. it is a common command in Linux and is often used to back up files or directories.
The mv command is short for moving files. it can be used to move files or
37 people read comments (0) collect reports
Access the VI commandVI filename: open or create a file and place the cursor at the beginning of the first lineVi + N filename: open the file and place the cursor at the beginning of line NVi + filename:
1. Create a new Foldermkdir file nameCreate a new folder named Test under HomeView Source1 Mkdir/home/test2. New textCreate a new test.sh script under Homevi/home/test.sh3. Delete a file or folder1. Delete the test directory in the home
/Folder in the root directoryEnter "/" and press ENTERThere are many folders, such as etc, home, Lib, MNT, etc.ETC: stores the user name and passwordHome: each user has a folder, which is stored here.Lib: operating system filesMNT: used for
Linux commands-common file operation commands
Original works of Lin bingwen Evankaka. Reprinted please indicate the source http://blog.csdn.net/evankaka
Abstract: This article focuses on Linux commands-common file operation commands with examples
Ls
Vi/vim Use advanced: Refers to the random movement, moving flies (a)The help entry for the commands used in this section:Vim offers a plethora of ways to move, but we don't need to master all of these commands, just the ones that are best for you.
mkdir commandOne, mkdir command use permissionsAll users can create folders or directories in a folder that has permissions by using the mkdir command at the terminal.Second, the mkdir command uses the formatFormat: mkdir [options] DirNameThree,
Introduction to CAT Commands
The original meaning of the cat command is a connection (concatenate) that connects multiple file contents and outputs to the standard output stream (the standard output stream defaults to the screen). In practice, we
Many times, when I see someone replying to "How to move a file from A to B", the advice is often to copy the files with the Copy command, and then delete the files and folders using Del and Rd. The reply had no idea that the procedure he had given
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.