Skip to content
Advertisement

Tag: linux

Why is nginx access.log failing?

I try to use nginx on manjaro by typing up nginx on the terminal, but this comes up:open() “/var/log/nginx/access.log” failed (21: Is a directory). I ran sudo nginx -t and sudo systemctl start nginx.service and they both said the same thing. Is there something I can do to remedy this issue? Also to add, I used systemctl status nginx.service and

Is it possible to export a GPG private key without passphrase being provided in a prompt?

I would like to automate a GPG private key export so it runs without user interaction. I tried providing –batch –passphrase-fd 0 arguments both with passphrase being passsed as: an argument –passphrase ‘my-passhrase’ from stdin echo ‘my-passphrase’ | gpg … It didn’t work. Is it even possible to export private keys without user interaction? Answer You should add –pinentry-mode=loopback parameter,

How to go back to the Working Directory that was not committed

I forgot to commit on the directory where I was working and then I checkout to the previous commit and now I want to back to the directory where I used to work. What can i do ? Answer If your checkout of the previous version somehow deleted your folder, which was not added/committed, then you would need to rely

Bluetooth Serial Port on Raspberry Pi & something weird happened when using IDE and terminator to run python files

I am doing a project using the Bluetooth serial port. It is about the message communication between cellphones and the Rpi. I typed ‘sudo rfcomm watch hci0’ on the Terminator. The code on Python is simple: only assign the port address (‘/dev/rfcomm0’) and readline(). At first, things went right until I disconnected and reconnected. It said, “Cannot create Rfcomm TTY:

Json response data extraction using linux command

Below is the json response of an api endpoint, I wanted to get the id value of specific name in the below array of json response. eg: I wanted to get id value(10002) of name test3, with the help of name key. Using jq I’m able to select the name key, but I’m not to find a way to get

How to hold or copy files at run time in CENTOS 7

I have a tool that converts COBOL files to C++. When I run the command, it generates the.cpp file from the.cbl file but deletes it at run time. It is not holding the files or not saving the file in the designated folder, despite the fact that I can see that the.cpp file is created but destroyed within seconds. I’m

Linux “find” command and highlight filename [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I am using the Linux find command. It looks through all the *.jar files and their contents and finds the word “foo” in them but

Advertisement