Skip to content

Explanation of this docker file?

I am trying to understand this docker file I understood most of the lines but I don’t understand what these below lines means? Can anyone help me understand? I am not sure what is the purpose of wget supervisor docker.io openssh-server in that line. Also what does echo mean there? And then also last sed…

getting the output of “find” in a CSV

I’ve got a project where I’m trying to collect all the files on a linux system into a CSV to be dumped into a DB. my script has But the problem is that I have filenames %f and directory names %h with commas in them. So then I thought I could just put each item in quotes and that won’t

Change ownership and permission without terminal – Python

I have a gui made in glade and am stuck on one thing. I have a button that changes the ownership and permissions; it works fine except for folders and files owned by root. Is there anyway of invoking root privilages to run this command without having to input the root password in terminal? i.e. either predefi…

using nohup -> output to file and console

iam using nohup in my project. Is there a possibility get the Output of the program to the console and to the file at the same time while using nohup? With “tee”i had no sucess: thanks for help Answer Try this to run and log the output in file. If you want to run it in background:

qt run shell commands via qprocess

I am developing a small QT application to interact with the terminal, to send commands to the terminal and to read back information printed out. Example: get output of all processes using ps -aux PROBLEM I am able to write information out to the terminal but I dont think it is in the system scope, actual exam…

How do I find which user installed a package in linux?

Is there a way to find out which user installed a package in linux? Answer Usually packets are installed by the superuser (root) account. In case users use sudo to install them, you can check ~/.bash_history for each user tu inspect who issued the $ sudo apt-get install PACKAGE (in case you’re using apt…