我今天在玩别名,我注意到别名在使用时似乎不可用sudo:
danny@kaon:~$ alias
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
danny@kaon:~$ ll -d /
drwxr-xr-x 23 root root 4096 2011-01-06 20:29 //
danny@kaon:~$ sudo -i
root@kaon:~# ll -d /
drwxr-xr-x 23 root root 4096 2011-01-06 20:29 //
root@kaon:~# exit
logout
danny@kaon:~$ sudo ll -d /
sudo: ll: command not found
Run Code Online (Sandbox Code Playgroud)
有什么理由不能在使用时使用别名sudo吗?
我通过 Ubuntu 存储库安装了 Eclipse(我使用的是 Ubuntu 11.10)。然后我添加了 Indigo 存储库 (http://download.eclipse.org/releases/indigo/),因为只有 Helios 存储库被列为默认安装的一部分。如果我转到“帮助”>“检查更新”,则会列出一些要安装的更新,但是当我单击“下一步”时,出现以下错误:
Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse Java Development Tools 3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK (org.eclipse.jdt.feature.group 3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK)
Software currently installed: Shared profile 1.0.0.1317160468326 (SharedProfile_PlatformProfile 1.0.0.1317160468326)
Only one of the following can be installed at once:
JSch UI 1.1.300.dist (org.eclipse.jsch.ui 1.1.300.dist)
JSch UI 1.1.300.I20110511-0800 (org.eclipse.jsch.ui 1.1.300.I20110511-0800)
Cannot satisfy dependency:
From: Shared profile 1.0.0.1317160468326 (SharedProfile_PlatformProfile 1.0.0.1317160468326)
To: org.eclipse.jsch.ui [1.1.300.dist]
Cannot satisfy dependency:
From: Eclipse Java Development Tools 3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK (org.eclipse.jdt.feature.group …Run Code Online (Sandbox Code Playgroud) 正如标题所暗示的那样,我的同事断言使用文本编辑器而不是解析器(例如less)会锁定文件,并且在日志文件的情况下使其无法写入日志文件。
我以前从未听说过这个,只是一些初步测试发现情况并非如此。此外,我在谷歌搜索中找不到任何关于这方面的信息,以表明他可能从哪里得到这个想法。