Questions tagged «command-line»

有关使用命令行界面(CLI)的问题。

1
“ apt-get clean”和“ apt-get clean all”有何区别?
该命令之间的区别是什么(如果有的话): sudo apt-get clean 而这个命令: sudo apt-get clean all 在我的Lubuntu 12.04系统上,模拟这些命令可以发现它们的行为完全相同: ek@Apok:~$ apt-get -s clean NOTE: This is only a simulation! apt-get needs root privileges for real execution. Keep also in mind that locking is deactivated, so don't depend on the relevance to the real current situation! Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/* …
90 command-line  apt 




4
为什么不运行“ sudo shutdown now”关闭?
当我发出以下命令时: sudo shutdown now ..我新调试的Ubuntu 14.04服务器未关闭。它以以下消息停止: * Stopping System V runlevel compatibility Give root password for maintenance: (or type Control-D to continue): 如果输入root密码,则机器仅在shell提示符下坐在那里。





6
为什么“(base)”出现在我的终端提示前面?
根据标题,我想知道为什么我(base)在终端提示的左侧。 如果我source ~/.profile在终端上运行,它会消失。 如果我关闭该终端并重新打开一个新终端,(base)那又在那里。 我想知道它是什么,谢谢。 在图片中查看: 这是我的内容.profile(不包括标准$ path内容和其他个性化内容): # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi 这是我的.bashrc的内容 # If not running interactively, don't do anything case $- in *i*) ;; *) return;; …

7
如何从终端打开文件夹(使用GUI)?
我想在我的统一面板中放置一个链接/快捷方式/启动器(ubuntu 12.10)。 我在handytutorial.com上遵循了本教程,以创建一个自定义启动器并将其拖动到面板上。 我只需要知道必须输入哪个命令即可。这可能吗?

13
从命令行挂载加密的卷?
如果我有一个加密的外部磁盘(或不在fstab中的内部磁盘),我会在Nautilus中看到一个针对它的条目-带有“ X GB加密卷”之类的条目。我可以单击该卷,然后提示您输入密码来解密和安装设备。 但是,如何从命令行执行此操作? 这个wiki页面以及我可以找到的其他文档,仅涉及解密设备的GUI方法。但这在无头服务器或SSH登录的情况下不会实现。是否有一种简单的方法可以使设备/media像使用GUI一样安装到自动位置? (我不是在问加密的主目录,我知道ecryptfs-mount-private。这个问题是关于其他加密卷的。)



12
如何从命令行安装最新版本的cmake?
我试图cmake在我的linux盒中安装最新版本,但总是出现以下异常- userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz --2013-10-08 14:39:55-- http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz Resolving www.cmake.org... 66.194.253.19 Connecting to www.cmake.org|66.194.253.19|:80... failed: Connection timed out. Retrying. --2013-10-08 14:40:17-- (try: 2) http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz Connecting to www.cmake.org|66.194.253.19|:80... failed: Connection timed out. Retrying. --2013-10-08 14:40:40-- (try: 3) http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz Connecting to www.cmake.org|66.194.253.19|:80... 它总是在重试...有什么想法吗? 有人知道我在这里做什么错吗?还是有什么更好的方法可以在我的Linux机器上安装最新版本的cmake? userName@phx5qa01c-4e23:~/build$ uname -a Linux phx5qa01c-4e23 2.6.35-22-server #33-Ubuntu SMP Sun …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.