I am trying to move files from a folder to another location. I want to move all files except those which start with ‘c’. This is what I am trying Obviously this is a wrong way. Can anyone tell me the right way? I am using linux ( RHEL 6 ) Answer Since [^c] means “everything that is not cR…
Connect to a VPN Connection in Ubuntu in bash
How can I connect to a VPN Connection when I can use only bash (terminal)? I create a connection but I want to connect or disconnect using remote ssh connection Answer you can use nmcli to do that. this program is use for network management. you need to save the password of that connection before you use this…
How to clean up all maven projects with linux find command?
I want to clean up all my maven projects at once. But I want to avoid to do it step-by-step going through all the folders manually and call mvn clean. So I thought to do this with the find command. I tried the following call: The result was the error message: find: missing argument for “-exec”. No…
@reboot cronjob not executing
I have a Python script which simply writes some text and saves it to a file I want to execute this script at startup via CRON. So I edit the crontab listing by using My entire crontab looks like : This is the location of the file, and the file has permissions to execute. I can run the file no
How to call variables from ip.txt file to .sh file?
I have list of ip addresses in one txt file which I have named ip.txt I want to call those ip in my .sh file, I am not sure how to proceed here.. here I did soemthing Please tell me how to do that? Answer This should make it: or using for as you do because the syntax is: for
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
I’m working on XUbuntu 13.04 and developing swing applications. As I just wanted to try that application I ran into java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit on startup. I’ve found several questions about server/client vms and noticed that I have a server VM and t…
Does using linux capabilities disable LD_PRELOAD
In my custom environment an interceptor library is preloaded which runs a special implementation of bind(), connect(), etc. calls. The problem I see is whenever an application is explicitly enabled capabilities using command setcap, executing the application fails to preload interceptor library and calls defa…
SVN post-commit update error (Can’t create temporary file from template / permission denied)
My post-commit hook is: /usr/bin/svn update /var/www/html/mysite/ –username myusername –password mypassword –no-auth-cache >> /var/www/html/mysite/foo.txt 2>&1 After performing a commit, my post-commit hook outputs to foo.txt the following: Updating ‘/var/www/html/mysite&#…
Is it possible to compile Objective-C code on a PC?
I would like to start learning Objective-C for future iOS development. I understand that there are many large hurdles in getting an iPhone app to work on a PC but I’m trying to avoid all of that and just get familiar with the Objective-C language itself without all of the added mobile features. Is there…
Unable to install git
I ran the following commands on linux mint 12 lisa: I am getting the following error on running 3. That is, installing git: My /etc/apt/sources.list file contains the following content: sudo apt-get upgrade shows the following: Answer You need to install aptitude first. then install git using the command