Skip to content

Ubuntu – sudo with ACL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

zsh option to generate the recomended options

There is a nice option when setting up zsh on Ubuntu However, on a fresh Arch Linux install the option is missing. Is there a way to have it (or maybe, I am being picky here) ? Answer This happens when you haven’t got a .zshrc and there’s a /etc/zsh/recommended.zshrc. If you say yes, it’ll j…

Rabbitmq remote call with Pika

I am new to rabbitmq and trying to figure out how I can make a client request a server with information about memory and CPU utilization with this tutorial (https://www.rabbitmq.com/tutorials/tutorial-six-python.html). So the client requests for CPU and memory ( I believe I will need two queues) and the serve…

substitute consecutive tabs for “tNAt”

Have a badly formatted tsv file with empty fields all over the place. I wish to fill these empty spaces with “NA” on linux. I tried awk ‘{gsub(“tt”,”tNAt”); print$0)’ but that only substitutes one empty space to NA instance. Chaining the command awk ‘{gsub…

How to invert the l-flag of grep

First question here, so go easy (: I have a 385 files which are the result of simulations, named ###_result.dat. However, some of the results resulted in errors, which I can grep for using the -l flag since these files always contain the character “=”. So getting the error-files is no problem: Whe…

Remote access to web server on linux

I have access to a server running CentOS 6.7 on which I installed apache and configured the /etc/httpd/conf/httpd.conf file. I can see the webpage if I ssh to the server and run but I would like to access it using a real browser. If I try to access it from my computer, it tells me that this webpage is unavail…

SigCgt value is not getting updated in /proc//status file?

I have read about the signal handling in linux processes. I am using centOS 7.1 (kernel 3.10+). I am registering handler only for SIGTERM in my c++ program. As per my knowledge(not sure if my assumptions are correct). We can check all the signals a process is listening to in /proc/$pid/status file by using Si…