Ten Unknown Ubuntu skills

Source: Internet
Author: User
Tags pkill
1. Open the Super User permission running program dialog box, you may already know 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-& gt; Preferences-& gt; KeyboardShortcuts to bind this command with keyboard shortcuts (such as Shift + Alt + F2) for greater convenience.

1. Open the Super User permission running program dialog box

You may already know that you can 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) for more convenient use of this function.

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. Www.linuxidc.com one day I found that GDebi can also run in command line mode (sudo gdebi package. deb), and 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 (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 it to this directory (with the-n parameter, you can 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 (known as Startup Item Management in Jaunty, you can always find it in System-> Preferences-> Startup Applications) and 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 do not know what type it is (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.

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.