Linux常用命令整理

2021-09-30 14:31:46 字數 460 閱讀 3083

1、cat /etc/redhat-release:檢視linux發行版本

[root@izbp13f9njk6vhpwsviwucz ~]# cat /etc/redhat-release

centos

linux release 7.3.1611 (core)

cat命令主要用來檢視檔案內容,建立檔案,檔案合併,追加檔案內容等功能

2、df -lh:檢視磁碟使用情況

檢視資料夾大小

du -h

--max

-depth

=1 /usr/local

/

3、重啟服務

service mysqld restart

service mysqld stop

service mysqld start

Linux 常用命令整理

在linux 下開發兩年了,目前轉向windows平台開發。將一些在linux 下經常會用到的命令進行整理,以免長時間不用忘了。1.使用ldd命令檢視hello依賴於哪些庫 ldd hello libc.so.6 lib libc.so.6 0x400la000 lib ld linux.so.2 ...

linux常用命令整理

cd change dictionary chmod change mode grep find 當前目錄 上層目錄 rmdir remove dictionary rm remove cp copy touch 建立新檔案,該檔案在os重啟後消失,檔案時暫時的 cat more 只能下拉,不能上拉...

linux 常用命令 整理

mount 命令 grep 最常用的就是過濾需要的內容,但有時候想過濾自己不需要的內容可以用 v 選項 比如說用 xargs grep contenta 過濾得到了很多內容,但是也有很多是自己不需要的 不需要的包含了contentb 可以再加個管道把 contentb 去掉 xargs grep c...