![](http://habrastorage.org/getpro/habr/avatars/b8d/68b/47c/b8d68b47ce7bf1450ea09963a4c988bc.jpg)
15 Ubuntu Tips for Advanced Linux Users (Translation)
Original article in English. Translation: Boten , Deniska, MaxElc
A few days ago, I (hereinafter - the author of the original article - approx. Per.) Wrote about books that novice users can download and read to learn Linux on their own. Today in the Linux section, we have something for experienced users as well. Here are some tips that you should try if you are an experienced user of Ubuntu Linux
1. Manage the command line quickly and smartly
You can use keyboard shortcuts and other command line features to make entering commands easier and faster. You should already know about the 'tab' key, which terminates part of the command or even the names of files and directories.
Here are some keyboard shortcuts that you can use in the terminal:
Ctrl-a - move to the beginning of the line
Ctrl-e - move to the end of the line
Alt-] x moves the cursor directly to the next place x x
Alt-Ctrl-] x moves the cursor back to previous location x
Ctrl-u delete everything from the cursor to the beginning of the line
Ctrl-k remove from the cursor to the end of the line
Ctrl-w delete from cursor to the beginning of the word
Ctrl - y paste text from the clipboard
Ctrl - l clear the screen by moving the current line up to the screen
Ctrl-x ctrl-u undo the last changes. ctrl -__
Alt-r undo all changes in the line
Alt-Ctrl-e expand command line
Ctrl-r incremental reverse lookup in history
Alt-p is not incremental reverse lookup in history
!!! execute the last command from the history
! abc execute the last command from the history starting with abc
! n execute the nth command from the history
^ abc ^ xyz replace the first appearance of abc with xyz in the last command and execute it
Also do not forget to check 4 sites where you can find cool command line tricks.
2. Launch Ubuntu Linux applications using hotkeys.
This can be done in two ways:
* Use applications like Launchy or Gnome-Do, which allow you to quickly launch applications by typing just a few letters from the application name.
* Or you can call the gconf editor (press Alt + F2, then type gconf-editor and press enter) and go to apps> metacity> global_keybindings. There you need to double-click on any of run_command_N and specify the hot keys that will run the application you need. Remember this number N, go to apps> metacity> keybinding_commands, double-click on the corresponding command_N (where N is the number you remembered earlier) and enter the name of the application that will be launched. For example, if you want to run Firefox, simply specify firefox.
![image](https://habrastorage.org/getpro/habr/post_images/b61/8d2/cba/b618d2cba7ab5f370a06e769aef3851f.png)
![image](https://habrastorage.org/getpro/habr/post_images/4a3/ebe/fc0/4a3ebefc094596791563337ae4f3fe60.png)
At the same time, you should familiarize yourself with the hot keys used in Ubuntu by default.
3. Continue to work from where you left off.
![image](https://habrastorage.org/getpro/habr/post_images/a93/278/bb0/a93278bb0415f1b00a45f438d07d04af.png)
You can configure Ubuntu to remember applications that were open the last time you logged out. When you start a new session, all these applications will already be running, and you can continue from where you left off.
To enable this feature, go to System> Preferences> Startup Applications, go to the settings tab and check the box “Automatically remember running applications when logging out”.
4. Create a separate partition under the Ubuntu Linux home directory.
![image](https://habrastorage.org/getpro/habr/post_images/00e/ac7/b40/00eac7b401cf3a2ad72e138c1efe9469.png)
A new version of Ubuntu is released every 6 months. Despite the fact that you can update the system to the latest version using the update manager, sometimes the update may not work correctly, and some users prefer a clean installation in this case.
The disadvantage of this option is that all data in the home directory will be lost. To avoid this problem, you can create a separate partition for the home directory during the first installation of Ubuntu and allocate the necessary amount of disk space according to your needs. The next time you install Ubuntu, simply specify this section for your home directory (by specifying / home as the mount point).
In this case, all your files and data will be saved even in the case of a clean installation.
5. Update and install Ubuntu Linux applications without an Internet connection.
![image](https://habrastorage.org/getpro/habr/post_images/0df/7ca/164/0df7ca164566555c83afd37511cefae5.png)
There are several ways to do this, but the easiest of them is using APTonCD. APTonCD allows you to create CDs or DVDs containing all the packages you need, which you can later install on computers without connecting to the Internet.
APTonCD requires a network connection (or preloaded packages) to create installation media. However, after preparing the media, you do not need to connect to the network of machines on which the applications will be installed. Insert the desired CD / DVD and use apt-get as usual.
6. Install new fonts, Microsoft fonts, and better display fonts.
![image](https://habrastorage.org/getpro/habr/post_images/7fe/a8b/5d8/7fea8b5d826fececfd37365f40214a5d.gif)
Ubuntu doesn't provide much choice when it comes to fonts. However, you can easily install new fonts.including Microsoft fonts such as Arial, Verdana, impact, and many others. You can browse various sites and choose the font that suits you best.
7. Use PPA, install the latest software.
Before the software becomes part of the Ubuntu distribution or becomes available through the repositories, it has to go through several steps. Of course, these additional steps guarantee additional stability, but it also means that you do not receive the latest software when it becomes available.
If you want to be ahead of the rest, you can find Personal Package Archives for your favorite Launchpad software and add them to your system. I describeduse of PPA only in brief. If this option causes you too much trouble, you can download the latest deb packages and install them by double-clicking (you will not receive automatic updates for software installed in this way).
Using the latest versions, you may encounter a couple of difficulties, but most often they are not critical. You can always visit the Ubuntu Forums and quickly find help.
8. Work as root.
The root user is locked in Ubuntu by default to minimize the possibility of unauthorized actions. However, if you “promise to be careful,” you can unlock the root user in the following way:
![image](https://habrastorage.org/getpro/habr/post_images/9f0/0a4/c5f/9f00a4c5fc61f45c1e7b4b3f9f30c197.png)
1. Enter sudo passwd root and specify a new password for root.
2. Go to System> Administration> Login Window, open the Security tab and check “Enable local system administrator login”.
Now you can log in as root from the login window. You can also enter “sudo su”, enter your password and switch to the root user.
9. Run applications and games for Windows.
![image](https://habrastorage.org/getpro/habr/post_images/366/962/8ce/3669628ce48f879ee4614ffd0a1b3832.png)
Who doesn’t want to play Counter Strike on Ubuntu (if you are, of course, interested in games) or even run Photoshop? With Ubuntu, this is very easy to do .
10. Reduce load times using profiling.
Ubuntu Linux developers have done an excellent job of reducing boot times, Jaunty is fast, and Karmic will be even faster. However, there is another opportunity for improvement - loading profiling. Profiling allows Ubuntu to list all the files used at boot time and sort them according to their location on the hard drive. Due to this, during subsequent system downloads, these files will be read faster.
To profile boot, do the following
: * In the grub menu, highlight the kernel boot item that you use most often.
* Press “e” to edit.
* Highlight the line starting with “kernel” and press “e” again. Add the word “profile” to the end of the line.
Press “Enter” and then “b” to continue downloading.
Please note that during profiling for the first time, the system boots slower, but during subsequent downloads you will see a speed increase. Also note that the increase depends on the specific machine and the location of the files on the hard drive, so the acceleration may not be significant or even absent in some cases.
11. Try other Ubuntu desktop environments.
If you need something other than the standard Gnome shell, you simply have to check out alternative desktop managers. If you are looking for a complete replacement of the environment, then KDE4, which has a great history, is now very convenient and beautiful. To get KDE, you just need to run “sudo apt-get install kubuntu-desktop”.
12. Create a media center or media server.
![image](https://habrastorage.org/getpro/habr/post_images/fdf/1ac/263/fdf1ac26328b2772c166033e60260355.jpg)
It would be great if you had the opportunity to easily view and manage your huge collections of music, videos and photos. Fascinated by the Windows Media Center interface? Wait, you have not seen all the cool features of Ubuntu as a media center . You can even access media through your phone, PSP, or other computer if you install the media server on your Ubuntu.
13. Share your Firefox profile with Windows.
Many use Windows and Linux on the same computer. If you are one of them, then you have already had cases when you could not find your bookmarks, because they were made in Windows. Learn how you can share one profile.Firefox between multiple operating systems without synchronization via the Internet (guaranteed if you have the same version of Firefox). For different computers, you can of course use Weave.
14. Customize Nautilus to your taste.
![image](https://habrastorage.org/getpro/habr/post_images/a13/6d3/b7e/a136d3b7e0330dc5dac3729e5fc393b5.png)
Nautilus is the standard file manager in Ubuntu. You can be content with what you have, but you can get him to do more. Use extensions to enhance features or even to add new features to Nautilus.
15. Compile your own kernel.
If you don’t know what to do on the weekend, and want to take the time to configure something, how about building your own kernel configuration to meet exactly your requirements? Actually, it serves to educate oneself more. Someone can tell you that this allows you to use only those drivers and functions that you specifically need, although if everything works great with the standard kernel and you have no interest in the Linux kernel, then just skip this point.
But if you need some experimental kernel features or you need to compile it in a special way, you can always find the manual in the documentation for Ubuntu.
16. Change the Usplash screen and create your own background for GRUB.
![image](https://habrastorage.org/getpro/habr/post_images/992/1b1/bea/9921b1bea1dae64de5b9b20ec541838d.png)
You did not defend for yourself the previous advice? Here is another one. The Usplash screen is the Ubuntu text and logo with a running bar that you see when the system boots.
If you want to change them to something more interesting, follow these steps . What could be a better way to show your Linux fu than to set up the first boot screen? You can create your own loading screen using one of your photos, GIMP and a little skill. Here's how to do it.
Know other features and hacks available to Ubuntu users? I am sure you know. Share them in the comments.
PS: Other articles are proposed for translation, which are indicated in the links in this article.
A few days ago, I (hereinafter - the author of the original article - approx. Per.) Wrote about books that novice users can download and read to learn Linux on their own. Today in the Linux section, we have something for experienced users as well. Here are some tips that you should try if you are an experienced user of Ubuntu Linux
1. Manage the command line quickly and smartly
You can use keyboard shortcuts and other command line features to make entering commands easier and faster. You should already know about the 'tab' key, which terminates part of the command or even the names of files and directories.
Here are some keyboard shortcuts that you can use in the terminal:
Ctrl-a - move to the beginning of the line
Ctrl-e - move to the end of the line
Alt-] x moves the cursor directly to the next place x x
Alt-Ctrl-] x moves the cursor back to previous location x
Ctrl-u delete everything from the cursor to the beginning of the line
Ctrl-k remove from the cursor to the end of the line
Ctrl-w delete from cursor to the beginning of the word
Ctrl - y paste text from the clipboard
Ctrl - l clear the screen by moving the current line up to the screen
Ctrl-x ctrl-u undo the last changes. ctrl -__
Alt-r undo all changes in the line
Alt-Ctrl-e expand command line
Ctrl-r incremental reverse lookup in history
Alt-p is not incremental reverse lookup in history
!!! execute the last command from the history
! abc execute the last command from the history starting with abc
! n execute the nth command from the history
^ abc ^ xyz replace the first appearance of abc with xyz in the last command and execute it
Also do not forget to check 4 sites where you can find cool command line tricks.
2. Launch Ubuntu Linux applications using hotkeys.
This can be done in two ways:
* Use applications like Launchy or Gnome-Do, which allow you to quickly launch applications by typing just a few letters from the application name.
* Or you can call the gconf editor (press Alt + F2, then type gconf-editor and press enter) and go to apps> metacity> global_keybindings. There you need to double-click on any of run_command_N and specify the hot keys that will run the application you need. Remember this number N, go to apps> metacity> keybinding_commands, double-click on the corresponding command_N (where N is the number you remembered earlier) and enter the name of the application that will be launched. For example, if you want to run Firefox, simply specify firefox.
![image](https://habrastorage.org/getpro/habr/post_images/b61/8d2/cba/b618d2cba7ab5f370a06e769aef3851f.png)
![image](https://habrastorage.org/getpro/habr/post_images/4a3/ebe/fc0/4a3ebefc094596791563337ae4f3fe60.png)
At the same time, you should familiarize yourself with the hot keys used in Ubuntu by default.
3. Continue to work from where you left off.
![image](https://habrastorage.org/getpro/habr/post_images/a93/278/bb0/a93278bb0415f1b00a45f438d07d04af.png)
You can configure Ubuntu to remember applications that were open the last time you logged out. When you start a new session, all these applications will already be running, and you can continue from where you left off.
To enable this feature, go to System> Preferences> Startup Applications, go to the settings tab and check the box “Automatically remember running applications when logging out”.
4. Create a separate partition under the Ubuntu Linux home directory.
![image](https://habrastorage.org/getpro/habr/post_images/00e/ac7/b40/00eac7b401cf3a2ad72e138c1efe9469.png)
A new version of Ubuntu is released every 6 months. Despite the fact that you can update the system to the latest version using the update manager, sometimes the update may not work correctly, and some users prefer a clean installation in this case.
The disadvantage of this option is that all data in the home directory will be lost. To avoid this problem, you can create a separate partition for the home directory during the first installation of Ubuntu and allocate the necessary amount of disk space according to your needs. The next time you install Ubuntu, simply specify this section for your home directory (by specifying / home as the mount point).
In this case, all your files and data will be saved even in the case of a clean installation.
5. Update and install Ubuntu Linux applications without an Internet connection.
![image](https://habrastorage.org/getpro/habr/post_images/0df/7ca/164/0df7ca164566555c83afd37511cefae5.png)
There are several ways to do this, but the easiest of them is using APTonCD. APTonCD allows you to create CDs or DVDs containing all the packages you need, which you can later install on computers without connecting to the Internet.
APTonCD requires a network connection (or preloaded packages) to create installation media. However, after preparing the media, you do not need to connect to the network of machines on which the applications will be installed. Insert the desired CD / DVD and use apt-get as usual.
6. Install new fonts, Microsoft fonts, and better display fonts.
![image](https://habrastorage.org/getpro/habr/post_images/7fe/a8b/5d8/7fea8b5d826fececfd37365f40214a5d.gif)
Ubuntu doesn't provide much choice when it comes to fonts. However, you can easily install new fonts.including Microsoft fonts such as Arial, Verdana, impact, and many others. You can browse various sites and choose the font that suits you best.
7. Use PPA, install the latest software.
Before the software becomes part of the Ubuntu distribution or becomes available through the repositories, it has to go through several steps. Of course, these additional steps guarantee additional stability, but it also means that you do not receive the latest software when it becomes available.
If you want to be ahead of the rest, you can find Personal Package Archives for your favorite Launchpad software and add them to your system. I describeduse of PPA only in brief. If this option causes you too much trouble, you can download the latest deb packages and install them by double-clicking (you will not receive automatic updates for software installed in this way).
Using the latest versions, you may encounter a couple of difficulties, but most often they are not critical. You can always visit the Ubuntu Forums and quickly find help.
8. Work as root.
The root user is locked in Ubuntu by default to minimize the possibility of unauthorized actions. However, if you “promise to be careful,” you can unlock the root user in the following way:
![image](https://habrastorage.org/getpro/habr/post_images/9f0/0a4/c5f/9f00a4c5fc61f45c1e7b4b3f9f30c197.png)
1. Enter sudo passwd root and specify a new password for root.
2. Go to System> Administration> Login Window, open the Security tab and check “Enable local system administrator login”.
Now you can log in as root from the login window. You can also enter “sudo su”, enter your password and switch to the root user.
9. Run applications and games for Windows.
![image](https://habrastorage.org/getpro/habr/post_images/366/962/8ce/3669628ce48f879ee4614ffd0a1b3832.png)
Who doesn’t want to play Counter Strike on Ubuntu (if you are, of course, interested in games) or even run Photoshop? With Ubuntu, this is very easy to do .
10. Reduce load times using profiling.
Ubuntu Linux developers have done an excellent job of reducing boot times, Jaunty is fast, and Karmic will be even faster. However, there is another opportunity for improvement - loading profiling. Profiling allows Ubuntu to list all the files used at boot time and sort them according to their location on the hard drive. Due to this, during subsequent system downloads, these files will be read faster.
To profile boot, do the following
: * In the grub menu, highlight the kernel boot item that you use most often.
* Press “e” to edit.
* Highlight the line starting with “kernel” and press “e” again. Add the word “profile” to the end of the line.
Press “Enter” and then “b” to continue downloading.
Please note that during profiling for the first time, the system boots slower, but during subsequent downloads you will see a speed increase. Also note that the increase depends on the specific machine and the location of the files on the hard drive, so the acceleration may not be significant or even absent in some cases.
11. Try other Ubuntu desktop environments.
If you need something other than the standard Gnome shell, you simply have to check out alternative desktop managers. If you are looking for a complete replacement of the environment, then KDE4, which has a great history, is now very convenient and beautiful. To get KDE, you just need to run “sudo apt-get install kubuntu-desktop”.
12. Create a media center or media server.
![image](https://habrastorage.org/getpro/habr/post_images/fdf/1ac/263/fdf1ac26328b2772c166033e60260355.jpg)
It would be great if you had the opportunity to easily view and manage your huge collections of music, videos and photos. Fascinated by the Windows Media Center interface? Wait, you have not seen all the cool features of Ubuntu as a media center . You can even access media through your phone, PSP, or other computer if you install the media server on your Ubuntu.
13. Share your Firefox profile with Windows.
Many use Windows and Linux on the same computer. If you are one of them, then you have already had cases when you could not find your bookmarks, because they were made in Windows. Learn how you can share one profile.Firefox between multiple operating systems without synchronization via the Internet (guaranteed if you have the same version of Firefox). For different computers, you can of course use Weave.
14. Customize Nautilus to your taste.
![image](https://habrastorage.org/getpro/habr/post_images/a13/6d3/b7e/a136d3b7e0330dc5dac3729e5fc393b5.png)
Nautilus is the standard file manager in Ubuntu. You can be content with what you have, but you can get him to do more. Use extensions to enhance features or even to add new features to Nautilus.
15. Compile your own kernel.
If you don’t know what to do on the weekend, and want to take the time to configure something, how about building your own kernel configuration to meet exactly your requirements? Actually, it serves to educate oneself more. Someone can tell you that this allows you to use only those drivers and functions that you specifically need, although if everything works great with the standard kernel and you have no interest in the Linux kernel, then just skip this point.
But if you need some experimental kernel features or you need to compile it in a special way, you can always find the manual in the documentation for Ubuntu.
16. Change the Usplash screen and create your own background for GRUB.
![image](https://habrastorage.org/getpro/habr/post_images/992/1b1/bea/9921b1bea1dae64de5b9b20ec541838d.png)
You did not defend for yourself the previous advice? Here is another one. The Usplash screen is the Ubuntu text and logo with a running bar that you see when the system boots.
If you want to change them to something more interesting, follow these steps . What could be a better way to show your Linux fu than to set up the first boot screen? You can create your own loading screen using one of your photos, GIMP and a little skill. Here's how to do it.
Know other features and hacks available to Ubuntu users? I am sure you know. Share them in the comments.
PS: Other articles are proposed for translation, which are indicated in the links in this article.