+3 votes
208 views
Ubuntu, tips & advanced tricks 2/2

in Linux / Unix by (552k points)
reopened | 208 views

1 Answer

+4 votes
Best answer

This is the continuation of the Advanced Tricks Tutorial: Part 1

Browse the web from command line


It's always good to be prepared for everything, that's why it's a good idea to have a web browser based on command line in case something goes wrong with Firefox or with the entire GUI system. In this way we can access our browser from the terminal and look for a solution on the web.

However, these browsers by command line are quite primitive, they do not show images, not even color. In other words we can use them in cases of emergency or simply that you are a fan of the terminal.

We can install links via Synaptic which is one of the browsers per command line, the other is lynx that I personally do not recommend. After installed we go to a terminal and write links. Press g on the keyboard, enter the URL and navigate!

image


Create an Ubuntu bootable USB


Many times we do not have the installation disk of Ubuntu or we have a mini laptop without a CD drive, so Ubuntu brings us this functionality to create a USB installation, let's see.

Insert the USB, insert the installation CD of Ubuntu and run the program by clicking on System -> Administration -> Install Live USB . Hopefully I will finish creating all the files and we will have Ubuntu on our USB to install it wherever we want.


image



Run applications without opening a terminal


If we want to open an application that does not have an entry in the menu, for example gconf-editor , it is not necessary to go to the terminal and execute it from there. Just press Alt + F2, write the name of the program and if it is necessary to execute it with root privileges we wrote previously gksu and we are ready to execute our application.

Create a command to delete files that the trash can use


As many users will know when we use rm in the command line the deleted files disappear, forever. However we can create our own command to move those files to the trash and there we can recover or delete them in the usual way, emptying the trash.

To do this we will create an alias and edit the .bashrc file in the / home directory.

1- Open a terminal and write: gedit ~ / .bashrc
2- At the end of the file we add the following:
alias trash = "mv -t ~ / .local / share / Trash / files -backup = t"
3- Save the changes, close Gedit and open another terminal to test our new command.

For example, if we want to delete a document called documentonuevo.doc what we do is write: trash documentonuevo.doc


The file will be moved to the trash and with this we will not have to worry about the documents deleted from the terminal.

Repairing Windows from Ubuntu


When we have Windows and Ubuntu running on the same computer and Windows for some reason does not want to boot we can repair the file system from Ubuntu. For this we can use Synaptic to find the ntfsprogs package.

Once installed we go to a terminal and dismount the Windows partition (if it is mounted) and write:

 sudo ntfsfix / dev / sda1 

to check and repair the partition (this assuming that the partition is / dev / sda1).

This is also useful when we can not access the Windows partition from Ubuntu with the "Can not mount volume" error .

In this tutorial we have seen several of the features that Ubuntu provides us to perform tasks that we thought impossible quickly and easily. I say goodbye on this occasion but without forgetting that this great distribution has many more secrets to discover.

by (3.5m points)
edited

Related questions

+5 votes
1 answer
asked Jun 24, 2019 in Linux / Unix by backtothefuture (552k points) | 208 views
+4 votes
1 answer
asked Jul 3, 2020 in Android Tutorial by backtothefuture (552k points) | 509 views
+3 votes
1 answer
asked Jun 23, 2019 in Android by backtothefuture (552k points) | 283 views
+4 votes
1 answer
asked May 14, 2019 in Android by backtothefuture (552k points) | 261 views
+4 votes
1 answer
asked Jun 27, 2020 in Android Tutorial by backtothefuture (552k points) | 488 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users