国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

Linux 日常常用指令及應用小結

2019-10-26 18:54:36
字體:
來源:轉載
供稿:網友

最近搞了一個阿里ECS,CentOS7,涉及到一些基本的Linux指令,在這里總結一下,在搭環境中常用的一些指令,熟悉這些指令就基本能夠使用CentOS進行日常操作了。

   更多的可以參考系統自帶的  “Cammand --help” ,很實用。

  目錄相關指令

 /*cd指令  *跳至到XX目錄下,從Xshell遠程登陸進去的目錄是/root *cd .. 返回上一層目錄 */[root@Lettiy ~]# cd /usr/local/*ls 顯示當前目錄下的所有文件*/[root@Lettiy local]# lsaegis bin etc games include lib lib64 libexec sbin share src/*mkdir  新建,可以是目錄,可以是文件*/[root@Lettiy ~]# mkdir mytest[root@Lettiy ~]# lsmytest[root@Lettiy mytest]# mkdir text.txt[root@Lettiy mytest]# lstext.txt

  文件處理指令(移動,刪除,復制<cp 基本操作類似于mv>)

/*mv 可用于改名、也可用于移動*/[root@Lettiy mytest]# mv text.txt newname.txt[root@Lettiy mytest]# lsnewname.txt[root@Lettiy mytest]# mv newname.txt newdir[root@Lettiy mytest]# lsnewdir[root@Lettiy mytest]# cd newdir[root@Lettiy newdir]# lsnewname.txt/*rm 用于刪除文件 普通刪除文件用rm -f xx 普通目錄刪除 rm -rf xx 批量刪除同一名字 rm -v xx* (此處*類似于通配符)*/[root@Lettiy newdir]# lsnew1 new2 new3 new4 newname.txt[root@Lettiy newdir]# rm -f newname.txt[root@Lettiy newdir]# lsnew1 new2 new3 new4[root@Lettiy newdir]# rm -rf new4.txt[root@Lettiy newdir]# lsnew1 new2. new3[root@Lettiy newdir]# rm -rf -v new*removed directory: ‘new1'removed directory: ‘new2'removed directory: ‘new3'

     文件下載與解壓

/*wget 文件下載 wget url即可*/[root@Lettiy newdir]# wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.79/bin/apache-tomcat-7.0.79.tar.gz--2017-08-13 23:35:56-- http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.79/bin/apache-tomcat-7.0.79.tar.gzResolving mirrors.hust.edu.cn (mirrors.hust.edu.cn)... 202.114.18.160Connecting to mirrors.hust.edu.cn (mirrors.hust.edu.cn)|202.114.18.160|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 8975395 (8.6M) [application/octet-stream]Saving to: ‘apache-tomcat-7.0.79.tar.gz100%[================================================================================>] 8,975,395 19.3KB/s in 4m 36s2017-08-13 23:40:33 (31.8 KB/s) - ‘apache-tomcat-7.0.79.tar.gz' saved [8975395/8975395]/*tar 對于tar.gz文件進行解壓,解壓為rpm文件再安裝 tar -zxvf */[root@Lettiy newdir]# lsapache-tomcat-7.0.79.tar.gz[root@Lettiy newdir]# tar -zxvf apache-tomcat-7.0.79.tar.gzapache-tomcat-7.0.79/bin/catalina.shapache-tomcat-7.0.79/bin/configtest.shapache-tomcat-7.0.79/bin/daemon.shapache-tomcat-7.0.79/bin/digest.sh……[root@Lettiy newdir]# lsapache-tomcat-7.0.79 apache-tomcat-7.0.79.tar.gz

文件安裝與卸載

CentOS集成了yum,可配置源(repository)進行安裝

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 古交市| 肃南| 廉江市| 建昌县| 临夏市| 慈利县| 连江县| 随州市| 镶黄旗| 隆尧县| 浦城县| 海城市| 囊谦县| 延长县| 兰西县| 海阳市| 海晏县| 武城县| 东兰县| 鄂尔多斯市| 营山县| 海伦市| 阿拉善右旗| 榆林市| 缙云县| 广安市| 宜宾市| 济宁市| 华池县| 临夏县| 渝中区| 信阳市| 东安县| 辽中县| 滨州市| 元谋县| 肥乡县| 土默特左旗| 东源县| 莲花县| 赤城县|