Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 askubuntu.com/questions/336518/… –  bodhi.zazen Nov 10 '13 at 18:23

1 Answer 1

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.