Unix & Linux

Linux,FreeBSD和其他类似Un * x的操作系统用户的问答

2
如何从csh更改为bash作为默认shell
我将其csh作为默认外壳,如所示echo $SHELL。我想切换到bash默认外壳程序。我尝试了以下方法无济于事: 随着chsh我得到: chsh: can only change local entries; use ypchsh instead. 随着ypchsh我得到: ypchsh: yppasswdd not running on NIS master host ("dcsun2"). 我只有.chsrc主目录,.profile在中找不到任何文件/etc。如何将默认外壳程序更改为bash?
34 shell 




3
GNU查找并掩盖了某些shell的{}-哪个?
GNU查找手册页指出: -exec command ; [...] The string `{}' is replaced by the current file name being processed everywhere it occurs in the arguments to the command, not just in arguments where it is alone, as in some versions of find. Both of these constructions might need to be escaped (with …
34 shell  find  xargs  quoting 

5
Mac OS X的窗口系统的体系结构是什么?
我熟悉X11系统的工作原理,其中客户端通过套接字连接到服务器进程,然后将操作发送到窗口服务器以代表它们执行某些操作。 但是我不了解(并且找不到合适的文档)描述GUI应用程序如何与Mac OS X上的窗口系统交互。我遇到的一些问题包括: 应用如何从窗口系统接收事件? 该应用是否需要向内核或某个窗口系统服务器注册? 窗口系统如何请求应用更新其显示? 应用如何触发重新显示操作? 窗口系统是否有基于套接字的协议或其他RPC系统? 窗口系统或应用程序是否可以直接访问硬件? 客户端应用程序和窗口系统之间可以进行哪些操作?




1
apt-get如何真正起作用?
好的,我了解如何apt-get {install|upgrade|remove} mypackages安装,升级或删除二进制文件以及它们的配置数据文件和依赖项(实际上,remove除非提供其他标志,否则只会删除二进制文件)。 我不是在寻找如何使用它来man描述它,而是从更高层次上说它在做什么。我的最终目标是为我提供一种在多台远程计算机上安装和管理一些自定义软件(由make文件创建)的方法,并且我需要了解更多有关该过程的信息。如果对这个问题的答案是基于使用哪个发行版的,请定制Debian。 除了一般的工作方式外,我还有以下一些具体问题: 正在访问apt信息库的客户端如何跟踪文件? 是否必须将存储库托管在同一操作系统上(即,可以将apt存储库托管在redhat上)? 如何指定安装文件的位置?这是由.deb文件指定的吗? 远程机器如何访问存储库?只是ftp还是http? 托管存储库的计算机是否正在运行特殊软件(例如gitlab的git存储库),还是仅仅是某些结构化的文件系统?

2
在一个脚本中加入多个sed命令以处理CSV文件
具有这样的CSV文件: HEADER "first, column"|"second "some random quotes" column"|"third ol' column" FOOTER 并寻找类似的结果: HEADER first, column|second "some random quotes" column|third ol' column 换句话说,删除“ FOOTER”,在引号的开头,结尾和周围加引号。 到目前为止,此代码有效: sed '/FOOTER/d' csv > csv1 | #remove FOOTER sed 's/^\"//' csv1 > csv2 | #remove quote at the beginning sed 's/\"$//' csv2 > csv3 | #remove …
34 sed  csv 

2
在bash中,美元符号和方括号$ […]意味着什么?
似乎$[expr]像一样执行算术扩展$((expr))。但是我$[在bash手册中找不到任何提及。该命令没有结果: gunzip -c /usr/share/man/man1/bash.1.gz | grep -E '\$\[' 这个运算符是什么,其行为在任何地方都标准化了吗? 我的bash版本:GNU bash版本3.2.51(1)-发行版(x86_64-apple-darwin13)
34 bash  arithmetic 


3
“警告:文件系统ext2不支持嵌入。”但我的系统也未嵌入,为什么grub会尝试?
我正在阅读有关在Debian上发布Jessie的信息,所以我对任何可能引起问题的消息(即警告)特别谨慎(应该说是偏执)。我的系统是安装了Debian测试/不稳定的台式机,同时在/boot和的ext4分区上安装了Debian /,但是grub-pc在Debian中升级软件包时却看到此消息: Installing for i386-pc platform. Installation finished. No error reported. Installing for i386-pc platform. grub-install: warning: File system `ext2' doesn't support embedding. grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. Installation …
34 grub2 


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.