Linux基本操作
来源:互联网 发布:编程用什么语言好 编辑:程序博客网 时间:2024/05/16 13:51
1.加入新的用户
useradd jack
passwd jack
输入新密码和重复密码
2.拷贝文件夹
cp -r /usr/local/yjg/ /root/
3.查看文件夹内容
ls yjg
4.查看文件内容
cat
more
less
cal ---显示日历
5.显示文件占用空间大小
du -h yjg.txt
6.head -10 yjg.txt ---显示文件前10行
tail -10 yjg.txt ----显示文件后10行
7.关机
halt
shutdown -h now
power off
init 0
8.查看文件类型
file install.log
9.设置gid
chmod g+s nec ----给文件夹设置setgid
10.设置冒险位
chmod o+t nec ----增加冒险位
除管理员和所属用户外,其它用户不能删除
11.设置强制位和冒险位
set uid: chmod u+s 文件名
set gid: chmod g+s 文件名
sticky: chmod o+t 文件名
12.umask
管理员默认:022
普通用户:002
这个就是创建目录是,在rwx的基础上去掉umask值。
13.更改umask值
umask 003
14.把字符大小写转化
tr 'a-z' 'A-Z' < /usr/local/yjg/yjg.txt
- linux基本操作知识
- linux的基本操作
- linux基本操作命令
- Linux基本操作命令
- linux基本操作命令
- Linux的基本操作
- Linux 命令基本操作
- Linux基本操作命令
- linux LVM基本操作
- Linux基本操作命令
- Linux基本操作命令
- Linux基本操作
- Linux文件基本操作
- Linux基本操作二
- linux基本操作
- linux基本操作
- Linux Vi基本操作
- linux基本操作
- first blog
- COM, COM+ and .NET 的区别
- 游戏的简单规则:力量的简单规则
- ubuntu 安装 vsftp服务
- 1023
- Linux基本操作
- *.tar.gz的打开以及问题解决,还有tar打包压缩的命令
- D3D中光照,顶点法线,顶点结构,顶点颜色
- 从mysql转换到oracle数据库(第一刀)
- CPU寄存器
- D3D9Graphics翻译--D3D9的光照和材质
- 转一篇有用的博文《当你学不进去的时候,不妨看看大脑是怎么想的》
- 对于SQL Server 对象名 XXX 无效 的多种有效处理方式(hibernate自动创建、数据库移植)
- 从mysql转换到oracle数据库(第二刀)