摘要:
可以 : echo "yourpasswd" |sudo -S yourcommand但是不安全,因为密码都显示在shell脚本里面了-_-引自http://hi.baidu.com/mgqw/blog/item/2824bb01ccd5570a7aec2cd9.htmlsuspend#!/bin/bashecho "123" |sudo -S s2ram --forcehibernate#!/bin/bashecho "123" |sudo -S s2disk 阅读全文
摘要:
LECTURE ONEInternational crime court(ICC) came into being after the Second World War. The Nuremberg tribunal.No excuse as simply obedience for orders.Being chief leaders is no excuse for impunity.Not all countries are parties to the ICC statute.China is not a member. America has signed it but not ra 阅读全文
摘要:
安装uswsuspUbuntu gnu/linux只需代码:sudo aptitude install uswsuspArch gnu/linux系统代码:sudo pacman -S uswsusp下面两段Ubuntu跳过, 直接看最后的让gnome(或者Hal)改用uswsusp方式休眠修改配置/etc/suspend.conf(Ubuntu已经自动配置好了且Ubuntu下的文件是/etc/uswsusp.conf)把代码:resume device = 中的改成你的swap分区如代码:resume device = /dev/sda2uswsusp还可以压缩内存镜像, 不仅能使swape 阅读全文
摘要:
(2010-12-02 09:58:30)转载▼标签:帐号权限杂谈分类:Linux测试环境:CentOS 5.51、添加用户,首先用adduser命令添加一个普通用户,命令如下:#adduser tommy//添加一个名为tommy的用户#passwd tommy//修改密码Changing password for user tommy.New UNIX password://在这里输入新密码Retype new UNIX password://再次输入新密码passwd: all authentication tokens updated successfully.2、赋予root权限方法 阅读全文