1. pwd :显示当前所在目录的路径

1.1 语法格式

pwd #直接按回车键

1.2 实践案例

案例:查看当前所在目录路径
[root@yyds ~]# pwd
/root --->显示的是绝对路径

2. cd :切换目录

2.1 语法格式

cd 【参数】 【目录】

2.2 参数选项

参数选项

注释说明

参数选项

注释说明

~

切换到当前用户家目录

-

切换到上次所在目录

切换到当前用户家目录

.

当前目录

/root

切换到当前用户家目录

..

切换到当前目录的上一级目录

2.3 实践案例

# 案例1:查看执行cd、cd ~、cd /root命令后所在目录
[root@yyds tmp]# pwd
/tmp
[root@yyds tmp]# cd
[root@yyds ~]# pwd
/root
[root@yyds tmp]# cd ~
[root@yyds ~]# pwd
/root
[root@yyds tmp]# cd /root
[root@yyds ~]# pwd
/root # 案例2:使用绝对路径,切换/etc 目录下
[root@yyds ~]# cd /etc/
[root@yyds etc]# pwd
/etc # 案例3:使用相对路径,切换到/etc目录
[root@yyds ~]# cd /
[root@yyds /]# cd etc/
[root@yyds etc]# pwd
/etc # 案例4:切换到/etc/sysconfig/network-scripts/
[root@yyds ~]# cd /etc/sysconfig/network-scripts/
[root@yyds network-scripts]# pwd
/etc/sysconfig/network-scripts # 案例5:快速回到家目录
[root@yyds network-scripts]# cd --->>方法一
[root@yyds ~]# cd - --->>回到上次所在目录
/etc/sysconfig/network-scripts
[root@yyds network-scripts]# cd ~ --->>方法二
[root@yyds ~]# cd - --->>回到上次所在目录
/etc/sysconfig/network-scripts
[root@yyds network-scripts]# cd /root --->>方法三
[root@yyds ~]# # 案例6:返回上次所在目录
[root@yyds ~]# cd -
/etc/sysconfig/network-scripts # 案例7:返回上级目录
[root@yyds network-scripts]# cd ..
[root@yyds sysconfig]# pwd
/etc/sysconfig # 案例8:返回/目录
[root@yyds sysconfig]# cd / --->>方法一
[root@yyds /]# cd - --->>回到上次所在目录
/etc/sysconfig
[root@yyds sysconfig]# cd ../.. --->>方法二
[root@yyds /]# pwd
/

3. ls :查看当前目录下的所有文件及其属性信息

3.1 语法结构

 ls 【参数】 【文件】
ls [文件] --->>查看文件是否存在
ls [目录] --->>查看目录是否存在
ls [文件1] [文件1] [文件1] --->>查看多个文件

3.2 参数选项

参数选项

注释说明

参数选项

注释说明

-l

查看文件的详细属性信息️️

-S

递归显示所有子目录️

-a

显示隐藏文件️

-t

依据最后修改时间将文件排序显示

-i

显示文件的inode属性信息️️

-R

递归显示所有子文件

-d

显示目录自身属性信息️

-r

逆序排序️

案例实践:

# 案例1:查看/etc/hosts 文件是否存在
[root@yyds ~]# ls -l /etc/hosts
-rw-r--r-- 1 root root 158 6月 23 2020 /etc/hosts # 案例2:查看/etc/hosts /etc/passwd 两个文件是否存在
[root@yyds ~]# ls -l /etc/hosts /etc/passwd
-rw-r--r-- 1 root root 158 6月 23 2020 /etc/hosts
-rw-r--r-- 1 root root 1809 6月 30 23:08 /etc/passwd # 案例3:查看当前位置的yyds和/etc/passwd 文件是否存在
[root@yyds ~]# ls -l yyds /etc/passwd
ls: 无法访问 'yyds': 没有那个文件或目录
-rw-r--r-- 1 root root 1809 6月 30 23:08 /etc/passwd # 案例4:显示/tmp 目录下所有的内容
[root@yyds ~]# ls /tmp --->>方法一
yyds01.txt
systemd-private-c2a65d0e5b444a2a8294c787c5df926e-bluetooth.service-FKCAqo
systemd-private-c2a65d0e5b444a2a8294c787c5df926e-chronyd.service-lfiT7q
systemd-private-c2a65d0e5b444a2a8294c787c5df926e-systemd-logind.service-ZzP9XJ
[root@yyds ~]# cd /tmp --->>方法二
[root@yyds tmp]# ls
yyds01.txt
systemd-private-c2a65d0e5b444a2a8294c787c5df926e-bluetooth.service-FKCAqo
systemd-private-c2a65d0e5b444a2a8294c787c5df926e-chronyd.service-lfiT7q
systemd-private-c2a65d0e5b444a2a8294c787c5df926e-systemd-logind.service-ZzP9XJ # 案例5:显示/etc/sysconfig/network-scripts 下得所有文件
[root@yyds ~]# ls /etc/sysconfig/network-scripts
ifcfg-ens33 # 案例6: 显示/root 下的所有文件,含隐藏文件
[root@yyds ~]# ls -a /root
. 1.txt .bash_history .bash_profile cfg.txt .gnupg .tcshrc www
.. anaconda-ks.cfg .bash_logout .bashrc .cshrc initial-setup-ks.cfg .viminfo # 案例7:显示/root 下的所有文件的inode
[root@yyds ~]# ls -i
101033767 1.txt 102489504 anaconda-ks.cfg 101033761 cfg.txt 102489508 initial-setup-ks.cfg 34091944 www

4. mkdir :创建目录

4.1 语法结构

mkdir 【参数选项】 【目录名】

mkdir  [目录]
mkdir [目录1] [目录2]
mkdir [参数选项] [目录]

4.2 参数选项

参数选项

注释说明

参数选项

注释说明

-m

创建目录的同时设置权限️

-v

显示执行过程详细信息

-p

递归创建多级目录

4.3 案例实践

# 案例1.在当前创建yyds目录
[root@yyds ~]# mkdir yyds
[root@yyds ~]# ll
总用量 0
drwxr-xr-x 2 root root 6 7月 2 04:40 yyds # 案例2.在当前创建a b c 多个目录
#方法一:
[root@yyds ~]# mkdir a b c
[root@yyds ~]# ll
总用量 0
drwxr-xr-x 2 root root 6 7月 2 04:41 a
drwxr-xr-x 2 root root 6 7月 2 04:41 b
drwxr-xr-x 2 root root 6 7月 2 04:41 c
drwxr-xr-x 2 root root 6 7月 2 04:40 yyds
#方法二:
[root@yyds ~]# mkdir {a..c}
[root@yyds ~]# ll
总用量 0
drwxr-xr-x 2 root root 6 7月 2 04:42 a
drwxr-xr-x 2 root root 6 7月 2 04:42 b
drwxr-xr-x 2 root root 6 7月 2 04:42 c
drwxr-xr-x 2 root root 6 7月 2 04:40 yyds # 案例3.在/tmp目录下创建a目录
[root@yyds ~]# mkdir /tmp/a
[root@yyds ~]# ll /tmp/
总用量 0
drwxr-xr-x 2 root root 40 7月 2 04:44 a # 案例4.在/tmp/下创建yyds 在/opt/下创建oldgirl
[root@yyds ~]# mkdir /tmp/yyds /opt/oldgirl
[root@yyds ~]# ll /tmp/ /opt/
/opt/:
总用量 0
drwxr-xr-x 2 root root 6 7月 2 04:45 oldgirl /tmp/:
总用量 0
drwxr-xr-x 2 root root 40 7月 2 04:44 a
drwxr-xr-x 2 root root 40 7月 2 04:45 yyds # 案例5.在当前创建yyds/a/b/c目录
[root@yyds ~]# mkdir -p yyds/a/b/c
[root@yyds ~]# tree
.
└── yyds
└── a
└── b
└── c 4 directories, 0 files

5. cp :复制文件或目录

5.1 语法结构

cp 【参数选项】 【源文件】 【目标文件】

cp [源文件] [目标文件]
cp [源文件] [修改后的文件名]
cp [文件1] [文件2] [文件3] [目录]
cp [参数] [源文件] [目标文件]

5.2 参数选项

参数选项

注释说明

参数选项

注释说明

-a

等价于pdr参数组合

-p

保留源文件或目录文件的所有属性️

-r

递归复制目录及其下所有子文件️

-i

若目标文件已存在,则会询问是否覆盖

-b

覆盖目标文件前先进行备份

-f

若目标文件已存在,则会直接覆盖

-t

将源文件和目标文件互换位置️

5.3 案例实践

# 案例1.创建yyds.txt 拷贝到/opt目录
[root@yyds ~]# touch yyds.txt
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt
[root@yyds ~]# cp yyds.txt /opt/
[root@yyds ~]# ll /opt/
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt # 案例2.复制多个文件到/opt目录
[root@yyds ~]# touch {a..c}.txt
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 04:55 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 c.txt
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt
[root@yyds ~]# cp a.txt b.txt c.txt /opt/
[root@yyds ~]# ll /opt/
总用量 0
-rw-r--r-- 1 root root 0 7月 2 04:56 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:56 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:56 c.txt
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt # 案例3.拷贝不同目录下文件/etc/hosts /tmp/1.txt 文件到/opt目录
[root@yyds ~]# cp /etc/passwd /tmp/a.txt /opt/
[root@yyds ~]# ll /opt/
总用量 4
-rw-r--r-- 1 root root 0 7月 2 05:01 a.txt
drwxr-xr-x 2 root root 6 7月 2 04:45 oldgirl
-rw-r--r-- 1 root root 1856 7月 2 05:01 passwd # 案例4.cp后重新起个名字,在当前将yyds.txt 备份成yyds.txt.bak
[root@yyds ~]# cp yyds.txt yyds.txt.bak
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 04:55 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 c.txt
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt
-rw-r--r-- 1 root root 0 7月 2 05:02 yyds.txt.bak # 案例5.将yyds.txt 复制到/opt下命名为yyds.txt.bak
[root@yyds ~]# cp yyds.txt /opt/yyds.txt.bak
[root@yyds ~]# ll /opt/
总用量 4
-rw-r--r-- 1 root root 0 7月 2 05:01 a.txt
-rw-r--r-- 1 root root 0 7月 2 05:02 yyds.txt.bak
drwxr-xr-x 2 root root 6 7月 2 04:45 oldgirl
-rw-r--r-- 1 root root 1856 7月 2 05:01 passwd # 案例6.将/opt目录下得yyds.txt.bak 复制到当前目录
#方法一:
[root@yyds ~]# cp /opt/yyds.txt.bak ./
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 04:55 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 c.txt
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt
-rw-r--r-- 1 root root 0 7月 2 05:05 yyds.txt.bak
#方法二:
[root@yyds ~]# cp /opt/yyds.txt.bak .
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 04:55 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 c.txt
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt
-rw-r--r-- 1 root root 0 7月 2 05:06 yyds.txt.bak
#方法三:
[root@yyds ~]# cp /opt/yyds.txt.bak ~
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 04:55 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 c.txt
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt
-rw-r--r-- 1 root root 0 7月 2 05:07 yyds.txt.bak
#方法四:
[root@yyds ~]# cp /opt/yyds.txt.bak /root/
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 04:55 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 c.txt
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt
-rw-r--r-- 1 root root 0 7月 2 05:08 yyds.txt.bak # 案例7.拷贝多个文件到当前的位置
[root@yyds ~]# touch /tmp/{1..3}.txt
[root@yyds ~]# ll /tmp/
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:09 1.txt
-rw-r--r-- 1 root root 0 7月 2 05:09 2.txt
-rw-r--r-- 1 root root 0 7月 2 05:09 3.txt
-rw-r--r-- 1 root root 0 7月 2 04:59 a.txt
[root@yyds ~]# cp /tmp//{1..3}.txt .
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:10 1.txt
-rw-r--r-- 1 root root 0 7月 2 05:10 2.txt
-rw-r--r-- 1 root root 0 7月 2 05:10 3.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 c.txt
-rw-r--r-- 1 root root 0 7月 2 04:54 yyds.txt
-rw-r--r-- 1 root root 0 7月 2 05:08 yyds.txt.bak # 案例8.复制yyds目录到/opt下
[root@yyds ~]# mkdir yyds
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:10 1.txt
-rw-r--r-- 1 root root 0 7月 2 05:10 2.txt
-rw-r--r-- 1 root root 0 7月 2 05:10 3.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 a.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 b.txt
-rw-r--r-- 1 root root 0 7月 2 04:55 c.txt
drwxr-xr-x 2 root root 6 7月 2 05:11 yyds
[root@yyds ~]# cp -r yyds /opt/
[root@yyds ~]# ll /opt/
总用量 4
-rw-r--r-- 1 root root 0 7月 2 05:01 a.txt
drwxr-xr-x 2 root root 6 7月 2 05:11 yyds
-rw-r--r-- 1 root root 0 7月 2 05:02 yyds.txt.bak
drwxr-xr-x 2 root root 6 7月 2 04:45 oldgirl
-rw-r--r-- 1 root root 1856 7月 2 05:01 passwd # 案例9.复制多个目录到/opt下
[root@yyds ~]# mkdir {A..C}
[root@yyds ~]# ll
总用量 0
drwxr-xr-x 2 root root 6 7月 2 05:13 A
drwxr-xr-x 2 root root 6 7月 2 05:13 B
drwxr-xr-x 2 root root 6 7月 2 05:13 C
[root@yyds ~]# rm -rf /opt/*
[root@yyds ~]# ll /opt/
总用量 0
[root@yyds ~]# cp -r {A..C} /opt/
[root@yyds ~]# ll /opt/
总用量 0
drwxr-xr-x 2 root root 6 7月 2 05:14 A
drwxr-xr-x 2 root root 6 7月 2 05:14 B
drwxr-xr-x 2 root root 6 7月 2 05:14 C # 案例10.将etc目录复制到当前的位置
[root@yyds ~]# cp -r /etc/ .
[root@yyds ~]# ll
总用量 12
drwxr-xr-x 2 root root 6 7月 2 05:13 A
drwxr-xr-x 2 root root 6 7月 2 05:13 B
drwxr-xr-x 2 root root 6 7月 2 05:13 C
drwxr-xr-x 124 root root 8192 7月 2 05:15 etc
[root@yyds ~]# ll etc/
总用量 1308
drwxr-xr-x 3 root root 101 7月 2 05:15 abrt
-rw-r--r-- 1 root root 16 7月 2 05:15 adjtime
-rw-r--r-- 1 root root 1529 7月 2 05:15 aliases
......省略

6. rm :删除文件或目录

6.1 语法结构

rm 【参数选项】 【文件名】

6.2 参数选项

参数选项

注释说明

参数选项

注释说明

-d

仅删除无子文件的空目录

-f

强制删除不询问

-r

递归删除目录及其内全部子文件

6.3 案例实践

# 案例1. 删除当前的yyds
[root@yyds ~]# ll
总用量 0
drwxr-xr-x 3 root root 15 7月 2 05:56 yyds
[root@yyds ~]# rm -rf yyds/
[root@yyds ~]# ll
总用量 0 # 案例2. 删除opt目录下的a.txt b.txt
[root@yyds ~]# ll /opt/
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:52 a.log
-rw-r--r-- 1 root root 0 7月 2 05:50 a.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 b.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 c.txt
drwxr-xr-x 2 root root 6 7月 2 05:53 yyds
-rw-r--r-- 1 root root 0 7月 2 05:48 yyds.txt
[root@yyds ~]# rm /opt/a.txt /opt/b.txt
rm:是否删除普通空文件 '/opt/a.txt'?y
rm:是否删除普通空文件 '/opt/b.txt'?y
[root@yyds ~]# ll /opt/
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:52 a.log
-rw-r--r-- 1 root root 0 7月 2 05:50 c.txt
drwxr-xr-x 2 root root 6 7月 2 05:53 yyds
-rw-r--r-- 1 root root 0 7月 2 05:48 yyds.txt

7. mv :移动文件或目录

7.1 语法结构

mv 【参数选项】 【源文件】 【目标文件】

mv [源文件] [目标文件]
mv [源文件] [修改后的文件名]
mv [文件1] [文件2] [文件3] [目录]
mv [参数] [源文件] [目标文件]

7.2 参数选项

参数选项

注释说明

参数选项

注释说明

-b

覆盖前为目标文件创建备份

-f

强制覆盖文件而不询问

-n

不要覆盖已有文件

7.3 案例实践

# 案例1.移动当前的yyds.txt到/opt目录下
[root@yyds ~]# touch yyds.txt
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:48 yyds.txt
[root@yyds ~]# mv yyds.txt /opt/
[root@yyds ~]# ll /opt/
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:48 yyds.txt # 案例2.移动多个文件
[root@yyds ~]# touch {a..c}.txt
[root@yyds ~]# ll
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:50 a.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 b.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 c.txt
[root@yyds ~]# mv {a..c}.txt /opt/
[root@yyds ~]# ll /opt/
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:50 a.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 b.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 c.txt
-rw-r--r-- 1 root root 0 7月 2 05:48 yyds.txt # 案例3.移动a.txt到/opt/目录命名为a.log
[root@yyds ~]# touch a.txt
[root@yyds ~]# mv a.txt /opt/a.log
[root@yyds ~]# ll /opt/
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:52 a.log
-rw-r--r-- 1 root root 0 7月 2 05:50 a.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 b.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 c.txt
-rw-r--r-- 1 root root 0 7月 2 05:48 yyds.txt # 案例4.移动目录 yyds到/opt下
[root@yyds ~]# mkdir yyds
[root@yyds ~]# ll
总用量 0
drwxr-xr-x 2 root root 6 7月 2 05:53 yyds
[root@yyds ~]# mv yyds/ /opt/
[root@yyds ~]# ll /opt/
总用量 0
-rw-r--r-- 1 root root 0 7月 2 05:52 a.log
-rw-r--r-- 1 root root 0 7月 2 05:50 a.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 b.txt
-rw-r--r-- 1 root root 0 7月 2 05:50 c.txt
drwxr-xr-x 2 root root 6 7月 2 05:53 yyds
-rw-r--r-- 1 root root 0 7月 2 05:48 yyds.txt

️️️在企业中用mv替代rm使用

8. tree :树状结构列出目录内容

8.1 语法结构

tree 【参数选项】 【目录】

8.2 参数选项

参数选项

注释说明

参数选项

注释说明

-L

使用层级显示内容️

-F

显示文件完整的路径

-d

仅显示目录名

8.3 案例实践

# 案例1.
[root@yyds ~]# mkdir -p yyds/a/b/c
[root@yyds ~]# tree
.
└── yyds
└── a
└── b
└── c 4 directories, 0 files # 案例2.
[root@yyds ~]# tree -L 1 /
/
├── backup
├── bin -> usr/bin
├── boot
├── box
├── dev
├── etc
├── home
├── lib -> usr/lib
├── lib64 -> usr/lib64
├── media
├── mnt
├── opt
├── proc
├── root
├── run
├── sbin -> usr/sbin
├── srv
├── sys
├── tmp
├── usr
└── var 21 directories, 0 files

9. du:查看目录大小

9.1 语法格式

du [参数] [文件名]

9.2 参数选项

参数选项

注释说明

参数选项

注释说明

-a

显示目录中所有文件的大小

-s

显示子目录的总大小️

-h

以易读方式显示️

9.3 实践案例

[root@linux:~]# du -sh /etc
29M /etc

Linux目录管理命令的更多相关文章

  1. 12个Linux进程管理命令介绍(转)

    12个Linux进程管理命令介绍 [日期:2015-06-02] 来源:Linux中国  作者:Linux [字体:大 中 小]   执行中的程序在称作进程.当程序以可执行文件存放在存储中,并且运行的 ...

  2. [转帖]十二 个经典 Linux 进程管理命令介绍

    https://www.cnblogs.com/swordxia/p/4550825.html 接了 http referer 头 没法显示图片 可以去原始blog 里面去查看.   随笔- 109  ...

  3. LINUX文件及目录管理命令基础

    Linux命令行组成结构 Linux命令结构 在Linux中一切皆文件,一切皆命令! 命令提示符: [root@tt ~]# [xiaohui@tt ~]$ Linux命令行常用快捷键 ctrl + ...

  4. LINUX文件及目录管理命令基础(2)

    Linux文件类型 文件作为Linux操作系统中最常见的对象,在系统中被分为了多种类型 如下: - 普通文件 d 目录 l 链接 b 块设备 c 字符设备 p 管道设备 s 套接字文件 Linux目录 ...

  5. Linux 文件与目录管理命令

    处理目录的常用命令 常见的处理目录的命令: ls: 列出目录 cd:切换目录 pwd:显示目前的目录 mkdir:创建一个新的目录,语法:mkdir [-mp] 目录名称 -m :配置文件的权限 -p ...

  6. Linux 文件及目录管理命令基础

    pwd   显示当前所在目录 cd 切换目录 cd 命令语法 cd [选项] 目录 cd 的常用选项: cd ~ /cd 切换到当前用户的加目录 cd . 保持当前目录不变 cd .. 切换到上级目录 ...

  7. Linux 权限管理命令

    第四章(二)权限管理命令 Linux常用命令(二)权限管理命令

  8. linux命令:linux权限管理命令

    权限管理命令   文件的权限只有你两个人可以更改,一个是root,一个是文件所有者. 命令名称:chmod 命令英文原意:change the permissions mode of a  file ...

  9. Linux 目录相关命令(1)

    1:分区 分区是指逻辑分区,主分区最多四个,由硬盘结构决定 windows里A和B做软驱判定,C主分区判定 1.硬盘分为若干个等大的扇区 每个扇区默认512字节,其中446字节用于启动信息,64字节用 ...

  10. Linux用户管理命令(第二版)

    添加用户 1.useradd -设置选项 用户名 [-D 查看缺省参数 ] 选项: u: UID [必须是系统中没有的] g:缺省所属用户组GID[最好有] G: 指定用户所属多个组[可以指定这个用户 ...

随机推荐

  1. 2-SQL注入渗透与攻防

    1.SQL注入基础 1.1 什么是sql注入 一.SQL注入概述 二.数据库概述 1.关系型数据库 关系型数据库,存储格式可以直观的反映实体间的关系,和常见的表格比较相似 关系型数据库中表与表之间有很 ...

  2. HTML5 表单新的 Input 类型

    H5新增了电子邮箱,手机号码,网址,数量,搜索,范围,颜色选择,时间日期等input类型 1.电子邮箱 type="email" 提供电子邮箱格式验证 如果格式不对,会阻止表单提交 ...

  3. IDA+kali 远程动态调试

    一.找到IDA文件目录下的 linux_server和linux_server64 复制到kali中去 给权限: chmod a+x ./linux_server chmod a+x ./linux_ ...

  4. 如何为在线客服系统的 Web Api 后台主程序添加 Bootstrap 启动页面

    背景 我在业余时间开发了一款自己的独立产品:升讯威在线客服与营销系统.这个系统的核心后台主程序,在最早期是完全没有页面,经常有朋友部署之后,一访问是 404,以为没有部署成功.我一看这肯定不行啊,可后 ...

  5. .NET Threadpool 饥渴,以及队列是如何使它更糟的

    .NET Threadpool 饥渴,以及队列是如何使它更糟的 .NET Threadpool starvation, and how queuing makes it worse - Criteo ...

  6. 【Python】【爬虫】爬取小说5000章,遇到的爬虫问题与解决思路

    爬虫问题分析 回顾 之前写了一个爬取小说网站的多线程爬虫,操作流程如下: 先爬取小说介绍页,获取所有章节信息(章节名称,章节对应阅读链接),然后使用多线程的方式(pool = Pool(50)),通过 ...

  7. 【Linux】职教云作业

    作业_职教云_Day01 @ 哔哩哔哩 萌狼蓝天 1.由普通用户切换到root用户 su 2.列出home目录下的各个文件名字 cd /home ls 3.在/etc/目录下显示以sysc开头的所有命 ...

  8. arch linux deepin-wine-wechat

    https://aur.archlinux.org/packages/deepin-wine-wechat md5sum for WeChatSetup-3.9.0.28.exe should be ...

  9. Spring Cloud Sleuth in a Monolith Application

    1. Overview   In this article, we're introducing Spring Cloud Sleuth – a powerful tool for enhancing ...

  10. gdb 初次运行卡住 Starting program: [New Thread 0x1103 of process 843]

    安装完后gdb一般会有提示: ==> gdbgdb requires special privileges to access Mach ports.You will need to codes ...