CSDN博客

img lovelypipi

Unix Basic

发表于2004/10/12 17:48:00  589人阅读

分类: LearningUnix

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

相关文章推荐

img
取 消
img