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

I'm trying to have auto script to open dir on any removable device - different usb have different names and i want the user only to enter the device name since the path /media/user is a default in most os linux sys. Here is the code:

F= `zenity --entry`
mkdir /media/user/${F}/new+directory

the interpreter doesn't recognize the variable - any solution / suggestions?

share|improve this question
/media is no longer the default mount point of removable devices in either Ubuntu or Fedora. See… – bodhi.zazen Nov 10 '13 at 18:23

Remove the space after the =. Space separates commands from assignments in bash.

F=`zenity --entry`
share|improve this answer

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.