The author of the original article has recently co-authored a book on Ubuntu skills with his collaborators, which is now named "Ubuntu Kung Fu". However, this book may not be published until next year. The author provides the following 10 tips. These skills are not necessarily available only on Ubuntu, but are verified under a Linux release such as Ubuntu. 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 are on a terminal
The author of the original article has recently co-authored a book on Ubuntu skills with his collaborators, which is now named "Ubuntu Kung Fu". However, this book may not be published until next year. The author provides the following 10 tips. These skills are not necessarily available only on Ubuntu, but are verified under a Linux release such as Ubuntu.
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) 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. One day, I found that GDebi can also run in command line mode (sudo gdebi package. deb). 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.