久久国产乱子伦精品免费M,亚洲一区二区三区91,欧美国产在线视频,国产精品视频久久

Linux運維工程師常用到的Linux基礎命令

今天小編要跟大家分享的文章是關于Linux運維工程師常用到的Linux基礎命令(一)。本篇文章是小編為大家整理的一些常用的Linux基礎命令,Linux入門新手和正在Linux學習的小伙伴快來看一看吧,希望能夠對大家有所幫助!

Linux運維工程師常用到的Linux基礎命令(一)

1、[root@ping ~]# tree -L 1 /

#使用tree 命令查看根目錄下的一層的目錄結構

2、ls - list directory contents

[root@ping ~]# ls -l /

以長格式顯示文件和目錄的信息

3、[root@ping ~]# ls -d /

顯示目錄和文件

4、[root@ping ~]# ls -d /*

根目錄下的所有的目錄和文件

5、cd - Change the shell working directory

[root@ping ~]# cd -

上次一次所在的目錄

6、[root@ping /]# cd .

當前目錄

7、[root@ping ~]# cd ..

這個目錄的上一次目錄

8、[root@ping /]# cd ~

當前用戶的家目錄

9、pwd - Print the name of the current working directory.

[root@ping ~]# pwd

查看當前所處的目錄

10、cp - copy files and directories

[root@ping ~]# cp

拷貝文件或目錄

11、alias - Define or display aliases

[root@ping ~]# alias rm ="mv"

定義別名alies 為mv 命令

12、unalias - Remove each NAME from the list of defined aliases

[root@ping ~]# alias

alias -rf='you want remvoe files or directories to mv'

alias cp='cp -i'

alias l.='ls -d .* --color=auto'

alias ll='ls -l --color=auto'

alias ls='ls --color=auto'

alias mv='mv -i'

[root@ping ~]# unalias mv

取消mv這個別名

13、cat - concatenate files and print on the standard output

[root@ping ~]# cat -n /root/.bashrc

查看文件內容并列出行號

14、find - search for files in a directory hierarchy

option:!取反、-a(and)并且、-o(or)

[root@ping ~]# find / -type f -name "useradd"

查找根目錄下文件類型為文本文件并且包含名字是"useradd" 的文件路徑

15、head - output the first part of files

[root@ping ~]# head /etc/services

默認查看文件前十行內容

16、tail - output the last part of files

[root@ping ~]# tail /etc/passwd

默認查看文件后十行內容

17、[root@ping ~]# tail -f /var/log/messages

查看文件動態更新的內容

18、rpm - RPM Package Manager

[root@ping ~]# rpm -ivh /mnt/Packages/elinks.el6_3.x86_64.rpm

安裝顯示輸出rpm軟件包情況

19、[root@ping ~]# rpm -qa | grep mysql

查看當前系統安裝關于"mysql"的rpm包名

20、yum - Yellowdog Updater Modified

[root@ping ~]# yum -y install ftp

用yum安裝ftp管理工具

以上就是小編今天為大家分享的關于Linux運維工程師常用到的Linux基礎命令的文章,希望本篇文章能夠對正在從事Linux相關工作的小伙伴們有所幫助。想要了解更多Linux相關知識記得關注馬哥教育官網。

聲明:文章來源于網絡,侵刪!

相關新聞

歷經多年發展,已成為國內好評如潮的Linux云計算運維、SRE、Devops、網絡安全、云原生、Go、Python開發專業人才培訓機構!

    1. 主站蜘蛛池模板: 商水县| 班戈县| 汤原县| 大洼县| 平原县| 东宁县| 新乐市| 宜昌市| 嘉义县| 丹江口市| 鹤岗市| 余江县| 双牌县| 聂拉木县| 大兴区| 定兴县| 黔东| 伽师县| 庆城县| 洛扎县| 东兴市| 南陵县| 临西县| 皋兰县| 揭西县| 固镇县| 凉山| 封开县| 哈尔滨市| 隆尧县| 上林县| 襄汾县| 和平区| 元朗区| 永新县| 金川县| 子长县| 定兴县| 洞头县| 永安市| 涟水县|