Linux环境配置

Linux环境

vmvare虚拟机

云服务器(氪)

下载软件

xshell,xftp

远程操作

vscode-remote-develop

远程编程开发

配置

vscode

常用指令

apt-get install Xxx  # ubuntu 下载依赖包

yum  install xxx   # CentOs 下载依赖包

wegt 文件网址   #下载文件
ls/tree  列出目录
cd  cd [目录名]。说明:切换当前目录至dirName
pwd   查看当前路径
mkdir   创建文件夹 
rm  删除一个目录中的一个或多个文件或目录
rmdir 从一个目录中删除一个或多个子目录项
mv   移动文件或修改文件名
cp      将源文件复制至目标文件,或将多个源文件复制至目标目录
cat 
     1.一次显示整个文件:cat filename
     2.从键盘创建一个文件:cat > filename 只能创建新文件,不能编辑已有文件.
     3.将几个文件合并为一个文件:cat file1 file2 > file
find 用于在文件树中查找文件,并作出相应的处理

apt-get

cat /etc/apt/sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

echo "" > /etc/apt/sources.list

sudo vi /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

sudo apt-get update

more

posted @ 2022-03-02 15:41  InsiApple  阅读(27)  评论(0编辑  收藏  举报