linux的基本語句

2022-08-01 02:18:11 字數 498 閱讀 9779

1.linux刪除檔案和資料夾

刪除檔案 例如 rm -f /var/log/httpd/access.log   刪除資料夾 例如 rm -rf /var/log/httpd/access

2. 檢視ip

ifconfig

3.建立資料夾

mkdir test

4.在資料夾裡新增(就是建立) 乙個檔案 例如a.txt

touch  test/a.txt

5.利用xshell登入linux伺服器,安裝lrzsz檔案接收傳送軟體

例如 sz rc.local

6.centos 7.0預設使用的是firewall作為防火牆

1) systemctl stop firewalld.service #停止firewall

2) systemctl disable firewalld.service #禁止firewall開機啟動

3) firewall-cmd --state #檢視預設防火牆狀態

linux 操作基本語句

總結一下常用的和不常用的linux命令,有些命令不常用的,是要反覆去看才能記住的。1.最基礎的ls命令,相當於win下的dir命令,常用引數有 a,l 2.cd命令,cd到乙個目錄,跟win下的乙個樣 3.mkdir命令,建立乙個資料夾,後跟要建立的資料夾名稱 4.touch命令,建立文件檔案,後面...

mysql基本語句 mysql基本語句

mysql關係型資料庫rds中的老大哥,增刪改查是mysql入門的基礎 增刪改查語句 增刪改查的語句命令為 增 insert 刪 delete 改 update 查 select或者show 庫操作建立資料庫 create database shujukuba 建立帶字符集的資料庫 create d...

MySQL的基本語句

mysql 檢視資料庫 show databases 建立資料庫 create database test 使用資料庫 use test 顯示 指定資料庫 的所有表 show tables 刪除表中所有資料 delete from 表名 truncate table 表名 不帶where引數的del...