Skip to content

Move all files not starting from a specific letter

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 c&#82…

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

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