Practical Tips for Ubuntu

Source: Internet
Author: User
The Linux community has organized some practical tips for Ubuntu and shared them with you! 1. configuration/etc/: All system configuration files are under the "/etc/" directory. Other important directories are described here: 2. daemon and system/etc/init. d/filerestart restart a service and the system daemon process. /Etc/init. d/filestop: Stop a service and the system daemon process. /Etc/init. d/filestart start a service

The Linux community has organized some practical tips for Ubuntu and shared them with you!

1. Configuration
/Etc/: All system configuration files are under the "/etc/" directory. Other important directories are described here:

2. daemon processes and systems
/Etc/init. d/file restart a service, the system daemon process.
/Etc/init. d/file stop stops a service and the system daemon process.
/Etc/init. d/file start starts a service and the system daemon process.

This is very common

3. Shortcut Keys
ALT + F2 open the run application dialog box, lazy practices
Enter gnome-terminal to enter the terminal.
Press Ctrl + U to delete the position from the beginning of the row to the optical compartment.
Press Ctrl + D to stop the input.
Ctrl + A, move the cursor to the beginning of the line.
Press Ctrl + E to move the cursor to the end of the row.
Press Ctrl + K to delete the position from the end of the row to the optical mark.
You can press Ctrl + Alt and a function key to select the virtual console. Generally, F1 ~ F6 key, F7 returns Desktop

* History: view the History of commands used. "GNU history Library"
Just "man history" for more information
Tab completion command

The F11 key is to switch the console to tie min and max size.
Ctrl + L is the clear screen, which is equivalent to the clear command. (This command is commonly used)

4. vi: several important network configuration files
/Etc/hostname: configure the host name.
/Etc/network/interfaces: network configuration.
/Etc/resolv. conf DNS configuration.
Frequently Used To improve efficiency

Dpkg-reconfigure xserver-xorg: configure the mouse, keyboard, display, and graphics card. (Important)

5. APT skills.
Apt-get remove package-names: delete a software package and all packages dependent on it.
Apt-cache depends package-names: list all dependencies of a specified package.
Apt-get update: update the package list from the source in the "/etc/apt/sources. list" file.

How to upgrade a software? Don't worry, just "apt-get install packagename" is usually prompted to update third-party software. When the source is not updated in time and the latest software is required, you have to download the package from the official website. I like the source package ^_^.

6. DPKG skills.
Dpkg-l [names]: List software packages.
Dpkg-I pkg. deb: Installation Package
In fact, the best way is to ask "men". This is also a common method that I often use. I cannot remember so many commands.

2)
1) enable the root user password
: Sudo passwd root
: The system prompts you to enter a new password and enable it.
:
: 2) disable the root account
: Sudo passwd-l root
:
: 3) Allow the root user to log on to GNOME
: After root is enabled,
: Open "system> System Management> logon window" and select "security ". Select "Allow Local System Administrator Logon"

: 4) automatically log on to GNOME

: Choose system> System Management> logon, and select security ". Select "Automatic Logon upon startup" and select a user.

Obviously, this practice is not recommended!

5) restore the GRUB Startup Menu after installing Windows
: We often want to reinstall the windows system, but the reinstallation will overwrite the menu for starting Linux,
: This is a headache. Let's solve it like this:
: First, use the Ubuntu installation disk to obtain the root permission. We assume that/dev/hda is the partition where/boot is located.
:, And then enter:
: Grub-install/dev/hda
: In this way, the grub-install program will install the grub menu for us.

6) change the GRUB menu boot system.
Sudo cp/boot/grub/menu. lst/boot/grub/menu. lst_backup
Sudo gedit/boot/grub/menu. lst
Next, let's imagine it. Let's look at the English ......

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.