
Linux/Unix系统编程
日常记录
無意淪陷
这个作者很懒,什么都没留下…
展开
-
ubuntu 软件安装常见错误
通过终端安装程序sudo apt-get install xxx时出错: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is anot翻译 2014-01-10 22:29:03 · 880 阅读 · 0 评论 -
XXX is not in the sudoers file解决方法
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。 例子: xxx_linuxidc_com@linuxidc:~$ sudo add-apt-repository ppa:s转载 2014-01-11 00:11:19 · 802 阅读 · 0 评论 -
No space left on device
#df /dev/sdc1 20799540 19751436 0 100% /home/sluo 无论怎么删除文件,剩余空间都为0,并没有增加。 网上很多人遇到的是硬盘还有空间,但是也报错:No space left on device. 显然他们的问题是因为inode耗尽了。 Linux上创建文件需要对应原创 2014-01-12 00:13:11 · 4561 阅读 · 0 评论 -
编写一个与dup2相同功能的函数!!!
题目 Write your own dup2 function that performs the same service as the dup2 function described in Section 3.12, without calling the fcntl function. Be sure to handle errors correctly.(实现自己的dup2函数,不能使原创 2016-08-02 17:59:31 · 755 阅读 · 0 评论