Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the skills of using ubantu

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you what are the tips for using ubantu. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1. Open the run program dialog box for superuser permissions

You may already know how to use Alt+F2 to open the run programs dialog box, and then you can type any command line to run it. If you type the gksu command into the terminal window, a similar dialog box will pop up, but the programs you are running will have permission at the root level. You can bind this command to keyboard shortcuts (such as Shift+Alt+F2) through System- > Preferences- > Keyboard Shortcuts, to make it easier to use.

two。 Use GDebi to install the package

The author hasn't noticed GDebi for a long time, which is a GUI program for installing packages you download manually. It will solve the dependency relationship according to the practical feature of software repository. Many people may be like the author, using the traditional dpkg command to achieve. One day the author found that GDebi can also be run in command line mode (sudo gdebi package.deb), and its function is exactly the same as in GUI mode. Try this command, and you may never want to use dpkg-I again.

3. CD command skills

The author is sure that even many command-line experts will occasionally discover skills they were not aware of before. Recently, the author found two previously ignored CD command skills, enter the cd command without any parameters, you can directly change to the / home directory (equivalent to cd ~), type cd-you can switch to the last directory you browse.

4. Use PUSHD to add directories to the directory stack

First of all, let's explain what the directory stack is, which is simply a directory list stored by bash. The currently browsed directory is always at the top of the list, but if you don't add a directory to it through PUSHD, the list is empty. For example, using the pushd / usr/bin command adds the / usr/bin directory to the list and changes to this directory (plus the-n parameter allows you to stay in the current directory without jumping). Using popd deletes the top directory and jumps to the next directory in the list. Try this command, which can be useful when you need to jump between different directories when managing your system, or when it's easy to forget the location of important things.

5. Use PKILL to kill the process quickly

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 removes a lot of work, and pkill firefox can kill all the incheng in the process list that conforms to firefox. Pstree is also a cool command that displays all processes in the form of a family tree based on all relationships.

6. Use Gnome Central to customize Gnome

For those users who are difficult to give up the window interface and want to have a similar control panel interface experience, they can consider using gnome-control-center to implement system configuration. Adding shortcuts to the desktop allows beginners to get a Windows-like experience and avoid getting lost in complex system menus.

7. Accelerate the startup of OpenOffice.org

If you use OpenOffice.org regularly, you may be embarrassed by its long startup time. To solve this problem, open the session program (called startup item management in Jaunty, but you can always find it in System- > Preferences- > Startup Applications) and add one. Type openoffice-nodefault-nologo on the command line, and after restarting, OpenOffice will cache when the Gnome desktop starts, and it will be finished quickly when you start any OpenOffice program again.

8. Quickly clean up disk garbage

Running out of disk space again? Try typing sudo apt-get autoremove and then sudo apt-get clean in the terminal window, the former command unloads all unused dependencies on the system, and the latter clears all cached package files, both of which are harmless. On a system that has been upgraded many times, you may be able to clear up some GB space in this way.

9. Find the missing file extension

If you receive an email attachment without an extension and don't 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, which displays any displayable string in the binary, and the file type is usually in the first few lines, so it's a good idea to pipe this command to head.

10. Don't forget these manual pages.

Take a look at these interesting but not well-known manual pages: a command line guide for beginners in intro; an introduction to the hier file system; and a variety of built-ins mini manuals for commands that don't come with instructions.

Thank you for reading! This is the end of this article on "what are the tips for using ubantu?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report