Commonly used commands in Ubuntu

1. Install and remove software:

install software

 1. Command installation:

sudo apt-get install    software name

2. App Store Installation

Internal store search and installation

3. Download the .deb file and install it directly

4. Download the compressed package, unzip and install

Unzip the file first, then enter the file and execute $ sudo ./ xxx.run

5. Source installation: ( ./configure; make; make install  )

1. Download the source code first

2. Enter the source code package for execution

$ ./configure --prefix=/opt/fcitx
(The more important parameter is --prefix. With the --prefix parameter, we can specify the software installation directory; when we don't need this software, just delete the software directory; )

3. make (requires long compilation time)

4. make install

Remove software  

1. Delete individual files

$ sudo apt-get purge/remove software name

2. Delete unused packages (The installation package downloaded by apt-get in Ubuntu is placed in /var/cache/apt/archives. So you can delete it in this path. Or use the following command:)

$ apt-get autoclean This command deletes the .deb installation files of the deleted software packages from the hard disk.
$ apt-get clean This will also delete the installation package of the package you have installed

2. Move files

$ sudo mv / file directory to be moved / move to the target directory 


3. Authority Management

sudo chmod 644 ××× (The owner has read and write permissions, and group users have only read permissions)

sudo chmod 777 ××× (everyone has read and write and execute permissions)


4. Install fonts

The general approach is to copy font files to /usr/share/fonts, as long as it is all font files under this path (including sub-paths).

$cd /usr/share/fonts


. Enter ROOT:

sudo su 

sudo -s


The position of auncher is switched between the left and bottom of the screen (versions after 16.04:)
Bottom: gsettings set com.canonical.Unity.Launcher launcher-position Bottom
left: gsettings set com.canonical.Unity.Launcher launcher-position Left

Guess you like

Origin blog.csdn.net/qinyikl/article/details/78068085