Skip to content

Linux: Stopping tar command?

Uh I badly messed up today, I was going to backup my whole website folder (public_html) and didn’t realize that it was 24GB, now it’s eating up disk usage and I have no idea how to stop it. The command I used was: I deleted the existing backup.tar.gz from the directory but the command is still run…

How can I resolve Windows vs Linux properties file paths?

I have a java project on a Windows box which builds successfully and all tests pass locally. This project is then checked in and built with Jenkins on a Linux box. The problem I am having is related to path issues in my properties file which is used for running tests. I point to a resources dir for part of

Errors opening a file in c

currently I’m having problems with the function below trying to open a file, no matter what I give it the function can’t seem to open the file. I’m currently passing in “./input.txt” which is a file in the same directory as the executable. Is there anything blatantly wrong with t…

pthread_mutex_t in multiple processes…who destroys it?

I’m using a pthread_mutex_t to synchronize access to a resource between multiple processes which are on the same level (i.e. there isn’t a parent/child relationship). How can I determine when it’s safe to call pthread_mutex_destroy? The only way I can think of to determine if the mutex is in…

Who schedules threads?

I have a question about scheduling threads. on the one hand, I learned that threads are scheduled and treated as processes in Linux, meaning they get scheduled like any other process using the conventional methods. (for example, the Completely Fair Scheduler in linux) On the other hand, I also know that the C…

Using shell commands with boot2docker

I have created a boot2docker VirtualBox instance, I can SSH into it OK but then when I try and run any commands such as bash I get Pretty sure I’m missing something really simple but can’t see what. Looking in /bin it doesn’t look to contain bash I’m pretty new to the *nix world so be …

PostgreSQL CSV import from command line

I’ve been using the psql Postgres terminal to import CSV files into tables using the following which works fine except that I have to be logged into the psql terminal to run it. I would like to know if anyone knows of a way to do a command similar to this from the Linux shell command line similar to how

Unable to direct insert in mysql database from linux xshell

i have run below command to insert data into my mysql database. sql query is ok. but after run the query, a prompt is coming to enter the password. but in my database no password is set. SO if i press enter key without writing anything then it is inserting data. How can i avoid to this prompt. That means