Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So in Terminal I created a new profile and I wanted it to start up to the desktop directory so I can just enter the filename I wanted to run instead of typing cd Desktop.

So this is what i did: Edit -> Profile Preferences -> Title and Command > Run a custom command instead of my shell and I put in the Custom command this cd Desktop. I thought if I put that then when I start the profile it will start as john@john:~/Desktop$ instead of john@john:~$ but when I start it I get this:

There was an error creating the child process for this terminal    Profile preferences
Failed to execute child process "cd" (No such file or directory)         Relaunch

Do you know how I can fix this?

share|improve this question
up vote 1 down vote accepted

Change it to

sh -c "cd ~/Desktop; exec bash"

Regarding comment:

sh -c "cd ~/Desktop && perl -dns; exec bash"
share|improve this answer
Naa, it is just a simple command so marriage it out of the question. Just an upvote and accepted vote suffices :) – Rinzwind Jul 5 '13 at 21:59
You're awesome dude! Do you also know how to make it to start up like this 'john@john:~/Desktop$ perl -dns', i'm currently doing pentest on my website and i really need fast shortcuts like that, thanks! – Jester Jul 5 '13 at 22:02
Sorry, i'm new to all this, i'm a windows guy that only recently moved on to Ubuntu :S i have no idea how to do that haha sorry – Jester Jul 5 '13 at 22:10
When i start the Terminal i want it to start up like this 'john@john:~/Desktop$ perl -dns' without executing the command so i tried to do this 'sh -c "cd ~/Desktop;perl -dns; exec bash" ' but it executed the command – Jester Jul 5 '13 at 22:18
Sorry for sounding like a noob haha – Jester Jul 5 '13 at 23:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.