[root@centos ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/export/server/jdk/bin:/root/bin
ls在/usr/bin/路径下
[root@centos ~]# which ls
alias ls='ls --color=auto'
/usr/bin/ls


chmod u+x,g+x,o-r work.txt
可以对文件的权限进行修改。
sudo chown
修改所属者
sudo chgrp
修改所属组。

sudo chown xxx:xxx file.txt
修改所属者,修改所属组。
如果想进入一个目录需要什么权限?
不是w,不是r,而是x

增加,删除用户。

mysql
删除表
drop table employee;
select GENDER,count(*) from TB_EMPLOYEE group by GENDER ;
统计男女人数
select GENDER,avg(AGE) from TB_EMPLOYEE group by GENDER ;
统计男女的平均年龄



#根据年龄升序排序
select * from TB_EMPLOYEE order by AGE asc ;
select * from TB_EMPLOYEE order by AGE desc ;
依据年龄进行升序,降序排序
#根据年龄升序排序,年龄相同,按入职时间降序排序
select * from TB_EMPLOYEE order by AGE asc ,ENTRY_DATE desc ;

#查询第一页员工数据,10条
select * from TB_EMPLOYEE limit 0,10;
select * from TB_EMPLOYEE limit 10,10;
查询第二页的10条数据