Ubuntu常用操作

安装VMtools:解压到某个地方,打开终端,运行./VM.....

 

root权限:sudo su

新建二进制文件:touch 文件名

新建文件夹:mkdir 文件夹名

删除文件:sudo rm -r 文件夹名

移动文件:sudo mv A /XX/XXX   (从当前目录将A文件移动到/XX/XX目录)

解压命令:https://blog.csdn.net/zad522/article/details/2770446

使用命令改变文件的组用户(改变文件权限) :sudo chown 你的用户名 文件名  ,sudo chown 你的用户名 文件名 / -R  (修改目录及其子目录)

编辑命令:sudo gedit XXX

更新系统包
sudo apt-get update
sudo apt-get upgrade

 

安装搜狗输入法:

1、sudo apt-get install fcitx-bin

2、sudo apt-get install fcitx-table

 

删除程序:

1、sudo apt-get purge softname

2、sudo apt-get autoremove

3、sudo apt-get clean

4、dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P

5、sudo apt-get update

 

安装Google浏览器

  1. 在终端中,输入以下命令:
  2. sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/

    sudo wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -

    sudo apt-get update

    sudo apt-get install google-chrome-stable

    运行

    /usr/bin/google-chrome-stable

 

删除apt-get锁:

sudo rm /var/lib/apt/lists/lock

安装gedit:

sudo apt-get install gedit

 

更改源:

  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup  
  2. sudo gedit /etc/apt/sources.list
  3. 复制以下源
  4. deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

  5. sudo apt-get update
  6. sudo apt-get upgrade

你可能感兴趣的:(Ubuntu)