摘要: #!/bin/bashecho "# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted# See http://help.ubuntu.com/communit... 阅读全文
posted @ 2015-09-05 16:45 psd2012 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashecho "# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted# See http://help.ubuntu.com/communit... 阅读全文
posted @ 2015-09-05 16:17 psd2012 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 假如test文件的权限为只有root用户才有写权限,那么:$ echo hello >>testbash: test: Permission deniedbash肯定说权限不够,那么:$ sudo echo hello >>testbash: test: Permission denied还是权限不... 阅读全文
posted @ 2015-09-05 16:09 psd2012 阅读(325) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashsudo apt-get install openssh-server -ysudo sed -i 's/without-password/yes/g' /etc/ssh/sshd_config卸載的腳本#!/bin/bashsudo stop sshdsudo apt-get... 阅读全文
posted @ 2015-09-05 15:30 psd2012 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#install sublimeecho "install sublime 2"sudo apt-get install axelaxel http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2\ x64.tar.bz2t... 阅读全文
posted @ 2015-09-05 13:40 psd2012 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#install chromium brower and flash pluginecho "install chromium brower and flash plugin"sudo apt-get install chromium-browser -ysudo apt-ge... 阅读全文
posted @ 2015-09-05 12:19 psd2012 阅读(165) 评论(0) 推荐(0) 编辑
摘要: axel 多線程wget 單線程下載 阅读全文
posted @ 2015-09-05 11:36 psd2012 阅读(116) 评论(0) 推荐(0) 编辑
摘要: su和sudo的区别是:1). su的密码是root的密码,而sudo的密码是用户的密码;2). su直接将身份变成root,而sudo是以用户登录后以root的身份运行命令,不需要知道root密码;ubuntu 默認root 沒有密碼,需要自行設置。 阅读全文
posted @ 2015-09-05 11:29 psd2012 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 添加轉義字符,如tar -zxvf Sublime\ Text\ 2.0.2\ x64.tar.bz2 阅读全文
posted @ 2015-09-05 11:24 psd2012 阅读(215) 评论(0) 推荐(0) 编辑