Ubuntu daily use summary

Contents

Use for nearly a year Ubuntu, I do not feel windowscan handle daily affairs. And I believe that as long as reasonable use Ubuntu, will be able to replace your hands Windows. I am not saying Ubuntuhow good, just learning to do from a software point of view of the people, I hope one day we can really go to buy legal copies of software used, if can not afford, then will know they can find some free open source software, rather than first thought was to find a cracked version of the software, and even proud of it. Now, let us summarize daily, we will use ubuntuthose operating it?

install software

apt-get

In the Ubuntumost common installation command is sudo apt-get install package, of course, when we want to uninstall this software is of course sudo apt-get remove package, sometimes Installer may fail because of missing dependencies, so we will use sudo apt-get install -fto install dependencies.
For example, we want to install vima text editor:

      
      
1
      
      
sudo apt-get install vim

Debian package

Some software has been packaged into our .debpackage, we need to download and execute dpkg -i package.debto install a Debian package. For example, we want to Ubuntuinstall Netease cloud music.
First, we need to go to the official web now .deb package. Download netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb
then execute the command:

      
      
1
      
      
sudo dpkg -i netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb

gz package

If you are under the .zipdocument, so long as decompression, and then to the current software bincatalog directly to start the shellscript file directly execute it just fine. For example, we want to install WebStorm. Download

      
      
1
      
      
sudo tar -zxvf WebStorm-11.0.2.tar.gz

After the extract to the current bindirectory

      
      
1
      
      
./Webstorm

Of course, the use of Ubuntuafter the game software you want to find it, or forget it!

Adding software to a starter

Popular to say that how to create a shortcut:

      
      
1
      
      
cd /usr/share/applications && ls

Then you will find that there are a lot of .desktopdocuments. Then (to create the shortcut method of power WebStorm):

      
      
1
      
      
sudo vim WebStorm.desktop

Then enter the following in the file:

      
      
1
2
3
4
5
6
7
8
9
10
11
13
14
15
16
17
18
19
      
      
[Desktop Entry]
Categories=Development;
Comment [zh_CN]
Comment=
Exec = / home / kerita / download /webstorm/bin/webstorm.sh // This is the path of your file decompression
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/home/kerita/下载/webstorm/bin/webstorm.png //这个图片的路径
MimeType=
Name[zh_CN]=WebStorm //这是软件名称
Name=WebStorm
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=owen

其他的软件也都是这个思路。

一些简单的命令

      
      
1
2
3
4
5
6
7
8
9
10
      
      
$ ls //显示当前下的所有文件,我当前目录下有这么多目录
Android IdeaProjects R
CloudMusic Navicat workspace
Downloads Pictures
$ cd workspace //进入workspace目录
$ cp -r Pictures workspace/ //复制Pictures目录到workspace目录里并命名为Pictures
$ Rm -r Navicat // delete directory Navicat is always delete, delete the command line is not placed in the Recycle Bin
R $ rm R // delete files
$ Sudo // execution of the current command using the super administrator
$ Poweroff // ordinary users shutdown

Ubuntu comes with the familiar keyboard shortcuts

System -> Settings -> Keyboard -> Shortcuts

Access control

For access to the file, remember the first time I encountered this question is installed lamppafter the discovery using the method Thinkphpreported after a mistake, because a php function which does not read and write permissions of the current file. If if you encounter this file permissions, then simple and crude way is to the current file 777permissions. You can also read Linux file permissions

      
      
1
      
      
sudo chmod 777 file

Shell Script

shell script is a good use of things, if you wanted to use Linuxcan learn about Shell tutorial . You can Shellwrite some simple procedures to facilitate their use.

Use Wine

For us it QQis standard on every computer. But QQthere is no Linuxversion of how to do? Then we can use wine, Wine is running Microsoft Windows programs under UNIX-like systems "compatibility layer." Windows programs running in Wine, as if running native Linux programs, the simulator will not have that kind of performance problems.
For winethe Chinese of this article may refer to: A Setup Wizard for the Users Chinese Wine

Guess you like

Origin www.cnblogs.com/lijianming180/p/12286179.html