Ubuntu Nautilus Vim Find sudo

Source: Internet
Author: User

For the CP, it requires sudo to operate, because you do not necessarily have permissions for this file operation, you can use Cp-i to consult whether you need to overwrite directly, you can use Ls-l to view the file permissions, and for different locations when you use the CP, This will determine the relative path you are using; For example, if you are in a directory where you need dest, you can sudo the CP source file. (This uses the concept of a relative path, which represents the current directory); You can also use the concept of absolute paths, absolute paths you need to start writing from the root directory (/). In addition, this involves the normal user and superuser (root user), this time need to/etc/sudoers and so on settings.


For the use of the man RM you can view the RM command, using the upper and lower keys (or the J key) can be used to view the corresponding parameters and commands to use; Under Linux, folders are treated as a directory (directory), not a file, so you cannot directly delete the commands that require the use of recursive deletions , which is the Rm-r file name. It is worth noting that when you enter a directory you need to first LS to see what files and directories are in this folder.


At the same time Nautilus can open the relevant directory directly, but some are not directly open, similar to NAUTILUS/HOME/YXG but you can nautilus/home/yxg/music; Nautilus ~/ Desktop is directly open, because ~ represents the user's home folder, Nautilus. Means to open the current file directory with a graphical interface; CD-represents the previous working directory; for the current directory you are in, you can enter the file name directly, There is no need to add the name of the corresponding directory address, because the default is the current directory.


Gedit file.txt Similar is vim file.txt, just one is a graphical interface, a command box is just a direct view of the editing file; After sudo aptitude install vim You can enter sudo aptitude autoclean;

VI and VIM have a certain connection;


sudo ls >> ~/desktop/file.txt is the display of content that is currently not fully displayed in the terminal to a file.txt on the desktop, where "the output pipeline is represented, so you can find it in the TXT document through find" At the same time, you can also enter it directly under the directory you are looking for: ls | grep Mwservice can also display files related to this, it is worth pointing out that the extension in Linux is irrelevant, where grep means to find the meaning, if you do not know what is in front of what is irrelevant, or use * to replace , there is the direct use of Nautilus Open without ctrl+f to find the direct blank space, input lib and so on can be viewed; ls-a shows all files, including unicom hidden files, but the. OS represents dynamic system files and is not hidden. For sudo cp-i source file directory. (current directory), later? You just start to answer, and for Linux is sensitive to case, here is not a mistake.


This article is from the "Cloud Light Breeze" blog, please be sure to keep this source http://htlbydgod.blog.51cto.com/9829379/1622504

Ubuntu Nautilus Vim Find sudo

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.