Brief Introduction to ubantu tips you don't know

Source: Internet
Author: User
Tags pkill

Ubantu tips can be found on the Internet, but here are some tips you may not know. These skills are not necessarily available only on Ubuntu. However, the ubantu release has been verified, and other versions have not yet been verified. You can try ubantu's usage skills in other versions.

1. Open the Super User permission running program dialog box

You may already know how to use Alt + F2 to open the "running program" dialog box, and then you can enter any command line to run it. If you enter the gksu command in the terminal window, a dialog box similar to the gksu command will pop up, but the running programs are all at the root level. You can use System-> Preferences-> Keyboard Shortcuts to bind this command to the Keyboard shortcut key, such as Shift + Alt + F2. This function is more convenient to use.

2. Use GDebi to install the package

I haven't noticed the GDebi program for a long time. This is a GUI program used to install the package you manually downloaded. It calculates dependencies based on the features of the software repository. Many people may use the traditional dpkg command like the author. One day, I found that GDebi can also run sudo gdebi package. deb in command line mode. Its functions are exactly the same as those in GUI mode. Try this command. Maybe you don't want to use dpkg-I anymore.

3. CD command skills

I believe that even many command line experts may occasionally find some skills that I didn't realize before. Recently I have discovered two previously ignored CD commands. If you enter the cd command without any parameters, you can directly switch to the/home Directory, which is equivalent to cd ~), Enter cd to switch to the previous directory you browsed.

4. Use PUSHD to add the directory to the directory Stack

First, it is very simple to describe what the directory stack is. It is a list of directories stored in bash. The currently browsed directory is always at the top of the list, but if you do not add a directory to it through PUSHD, this list is empty. For example, you can use the pushd/usr/bin command to add the/usr/bin directory to the List, and switch to this directory and add the-n parameter to stay in the current directory without redirecting ). Using popd will delete the top directory and jump to the next directory in the list. This command may be useful when you need to jump between different directories in the management system or easily forget the location of important things.

5. Use PKILL to quickly kill a process

I often use top, kill, or killall processes plus ps | aux to find the process number/process name to kill the process. But the pkill command can remove a lot of work, and pkill firefox can kill all the incheng that matches firefox in the process list. Pstree is also a cool command that displays all processes in the family tree based on all links.

6. Use the Gnome center to customize Gnome

For users who are difficult to discard the window interface and want to experience a similar control panel interface, you can use gnome-control-center for system configuration. Adding shortcuts to the desktop can give new users a Windows-like experience and avoid getting lost in complicated system menus.

7. Accelerate OpenOffice.org startup

If you often use OpenOffice.org, you may be reached by its long start time. To solve this problem, open the session program in Jaunty, which is called the Startup Item Management. You can always find it in System-> Preferences-> Startup Applications), and then add a new one. Enter openoffice-nodefault-nologo in the command line. After restart, OpenOffice will cache it when the Gnome Desktop is started, and it will be completed quickly when any OpenOffice program is started again.

8. Quickly clear disk junk

Is the disk space insufficient? Enter sudo apt-get autoremove in the terminal window and then enter sudo apt-get clean. The previous command uninstalls all unused dependencies in the system, the next command clears all cached package files, both of which are harmless. On a system that has been upgraded multiple times, you may be able to clear up several GB of space using this method.

9. Find the missing file extension

If you receive an email attachment without an extension and you do not know the type, Apple users often ignore the file extension), try the file command and add the file name directly. You can also try the strings command to display any printable string in the binary file. The file type is usually in the first few lines, therefore, it is a good way to connect this command with the head using pipelines.

10. Don't forget these manual pages

Take a look at these interesting but not well-known manual pages: Command Line guidance for beginners of intro; Introduction to hier file systems; and various mini manuals without built-in instructions for built-ins.

You should feel the charm of the above ten ubantu skills.

  1. Describes how to rename linux ubantu files
  2. Detailed analysis of Sleep Status in Linux
  3. Summary: a simple method for setting ubantu NICs
  4. Linux Regular Expression 1)
  5. Linux init process and related files

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.