Chinaunix首页 | 论坛 | 博客
  • 博客访问: 142360
  • 博文数量: 33
  • 博客积分: 2520
  • 博客等级: 少校
  • 技术积分: 365
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-10 09:26
文章分类

全部博文(33)

文章存档

2011年(1)

2010年(6)

2009年(26)

我的朋友

分类: LINUX

2009-07-20 17:11:46

将linux命令的点点滴滴记录下来,每次哪怕只记一个之前不懂的命令,所谓运水长天,学习是快乐并且长久的。
 
1 修改了分辨率,可是又不想重启电脑。只想重启X windows,网络上看到,可以ctrl+alt+backspace 退出桌面,在字符终端输入startx, 但是看起来没什么技术含量;;命令行怎么做?
   

The easiest way to restart X-windows is to simultaneously press ctrl-alt-backspace. Note: this will instantly kill X-windows and any programs running within it, like your window manager and probably everything else. There will be no confirmation.

Alternately, from the command-line, type "sudo pkill X".

Alternately, from the command-line, type "/etc/init.d/gdm restart" or "/etc/init.d/xdm restart".

貌似fedora 10 下,/etc/init.d/中没有gdm 也没有xdm两个文件。ubuntu下应该是可以的,,没确认。

阅读(420) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

beyondzsq2009-07-29 20:22:35

查看网关:/sbin/route 或者 netstat -nr 查看DNS:可直接查看文件:cat /etc/resolv.conf 其中 nameserver 一行的IP即为DNS