[francis@localhost ~]$ w
10:29:43 up 1:07, 4 users, load average: 1.35, 0.78, 0.42
USER TTYLOGIN@ IDLE JCPU PCPU WHAT
francis :009:22 ?xdm? 22:58 0.07s /bin/sh /usr/bin/startkde
francis pts/0 09:221:07m 0.03s 0.03s /bin/bash
francis pts/1 09:221:06m 0.00s 0.76s kdeinit4: kded4 [kdeinit]
francis pts/2 10:290.00s 0.03s 0.00s w
2.命令who的功能较简单,仅显示用户登录名、终端标志、和登录日期和时间,例如:
[francis@localhost ~]$ who
francis :0 2010-04-19 09:22
francis pts/02010-04-19 09:22
francis pts/12010-04-19 09:22
francis pts/22010-04-19 10:29
3.命名who am i 最简单,仅显示当前用户正使用的终端和登录时间,例如:
[francis@localhost ~]$ who am i
francis pts/22010-04-19 10:29
1.(1)ctrl+shift+t 生成terminal(2)ctrl+alt+F{1,6} 切换到虚拟控制台(6个);ctrl+alt+F7/F8, 返回图形界面
(3)直接执行gnome-terminal就可以生成另一个终端,不需“cd /usr/bin;
./gnome-terminal”
2.显示helloworld,首先查看当前的终端号:
[root@redhat yuanwei]# tty
/dev/pts/2
[root@redhat yuanwei]# echo helloworld >/dev/pts/2
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)