#bash语法,等号两边不能有空格
[root@xhs bash]# FreeMem=`free -m | grep Mem: | awk '{print $4}'`
[root@xhs bash]# echo $FreeMem
#设置时区
[root@xhs ~]# timedatectl set-timezone Asia/Shanghai
[root@xhs ~]# ll /etc/localtime
lrwxrwxrwx. 1 root root 35 Feb 2 11:28 /etc/localtime -> ../usr/share/zoneinfo/Asia/Shanghai
#用户权限
是 SGID 的第二个功能,即在某个目录中创建的文件自动继承该目录的用户组(只可以对目录进行设置)
#分区
分区的知识,可以只有一个分区,但效率不高,一个扇区最多只能存四个主分区,一般是在第四个扇区里存逻辑分区的指针;
fdisk进行分区
mkfs格式化
mount 挂载
#查看
df -h
du -sh /newFS/