Unix Basic

1. Kernel Shell and File.
2. Prom 状态命令与参数
(1)OK>
3. 环境变量
4.Basic Command:
  (1) cp/mv/rm/mkdir/rmdir/cat/touch
  (2) chmod
 (3) df/du
 (4)find
 (5) ln -s <file> <file>
 (6)man path:/usr/man
5. IO 重新导向
Standard IO
grep
6. User Management
1) File
 drwxrwxrwx filename 
r-4
w-2
x-1
mode : rwx rwx rwx r:read w:write x:execute 
分别对应:owner, group, other
缺省权限由umask码控制

2) id
查看用户的uid/gid
3) chmod 改变文档或目录属性
chmod [-r/number] 文件名
chmod 755 file1 改变文件file1可被所有人读取和执行,只有owner可写.
chmod g+x file2  增加文件组用户对file2执行的权限
chmod o-r file3   除去其他使用者对file3读取的权限
4) chown -R username file 改变文件的owner
7 Bash
1) 环境变量:display, term, lang, prompt, path, classpath
2)环境文件:.login  .profile .cshrc. .bashrc .kshrc
8. mount
9.network configuration
 1)/etc
 2) defaultrooter
 3) hosts
 4)netmasks

3)ifconfig -a

10. package
pkgadd -d [devicename]
pkgrm [device name]
pkginfo -l pkgname

11.Logoff and login
1) logOff : one can press ^d  to logoff the current x-window, if it doesn't work, you can check eof, end of file, by stty -a.
2)log in: you should enter the correct username and password to login the unix system.
 For each login, the system will require information concerning the computer's terminal type. Terminal type includes xterm/dtterm/vt100 and others, you can use:
  TERM=xterm,
  export $TERM 
to define the terminal type, you can also use : echo $TERM to check what kind of terminal type that you use currently.
3) passwd
 you can use the command “passwd “ to change password of user, the usage is “passwd [username]“, the default is changing the password of the current login user.





 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值