Advanced: seven good habits of using Linux efficiently!

Source: Internet
Author: User
Article Title: advanced: seven good habits of using Linux efficiently !. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

You may not get used to Linux at the beginning. Many experts have such experiences. After all, they were also new users. But now the Linux community is already providing guidance, manuals, and basic technical documents for new users to get started as quickly as possible. Three years ago, I first came into contact with Linux. Many people helped me through forums, online chats, emails, and so on. These "penguins" were very enthusiastic.

In this regard, I feel that I should make some contribution to the group that helps me selflessly, And I should write something to my friends who just use Linux. Here I compiled seven habits that people told me when I got started. I believe that if you use these seven habits, you will feel safer, more convenient, and learn a lot of practical things when using Linux. In the end, you will find that using Linux is so pleasant.

  1. Do not log on with the root user

This is the first thing you should pay attention to and observe. We may have been used to Windows before. We always thought that the higher the permission, the better, so we like to log on with an administrator account. However, this may be an important cause of virus harassment and insecurity in Windows. Many people are currently using root users to log on.

The higher the permission, the greater the responsibility. If you have administrator permissions, you must be cautious about what you do, but errors are inevitable. I remember that I used Suse Linux first. There are many things to manage, but I don't know how to do it without the image user interface. So I logged out and logged on to the root user's graphical interface. The default wallpaper for the root user GUI is a line of highlighted mines. These symbols circled in my mind, and I was very careful not to do anything wrong at last.

What are the risks of Root User Logon?
1. You can imagine if you are afraid of a swing without a protective network? This is the same as the root user logon principle. You will inadvertently destroy your system.
2. You may accidentally run malware. In root user mode, all permissions are granted by default to start any program.
3. If your system has security vulnerabilities not fixed, you may be fully controlled by others.
4. This is a Unix Convention. Unless necessary, do not run anything under the root user easily. If a program is not triggered by yourself to request root user permissions, you should be careful.

Generally, you do not have to log on to the root user interface. Below are some tips:
* Run the "sudo" or "su" command and exit after you complete management.
* If you do not know how to do this using command lines, you can use "gksu" or "kdesu ". For example, press Alt + F2 and press "gksu nautilus" and end the program immediately when you finish.

  2. Name your file properly

In Linux, you can name the file as you wish, but the following two points are not allowed: 1) "/" is dedicated to the root directory; 2) do not use invalid characters. Other technologies are acceptable, but to avoid future troubles, you can observe the following experiences:

* In experience, only letters, numbers, connectors (-), and underscores (_) are used (_)
* Avoid using special characters such as dollar signs ($), arc signs, and percent signs (%). These characters have special meanings for shell and may cause conflicts.
* Avoid spaces. It is silly to process files containing spaces on the terminal. You can use a connector or underline to replace spaces.

These have basically become my habits, and I do not consciously abide by these rules when using Windows and MAC.

  3. Place your home directory in a separate Partition

This will give you a lot of flexibility. Place the home directory in a separate partition. You can reinstall the system or even upgrade your entire version without losing your data and personal settings. You can reset what you need in the root directory and keep the home partition. Now you can categorize the data and personal settings you need without worrying about. You can use them at any time.

Don't be disappointed if you know this after installing the system. You can follow the step-by-step instructions of Carthik in the ubantu Blog titled "Move/home to it's own partition.

[1] [2] Next page

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.