分页: 1 / 1

shell交互求助

发表于 : 2014-05-24 18:23
skitta
我想写个shell,运行提示输入一个文件地址,回车后进入这个目录下,该怎么写呢?

Re: shell交互求助

发表于 : 2014-05-24 19:11
cao627
$ nautilus /home

Re: shell交互求助

发表于 : 2014-05-24 19:16
onlylove
看不懂,read -p?
read -p "提示内容" 目录
cd 目录
这种的?

Re: shell交互求助

发表于 : 2014-05-24 20:04
ipposis
[bash]gnome-open `zenity --title="title in here" --entry --entry-text="" --text="location in here"`[/bash]输入一个地址,然后打开输入的地址,输入的地址必须是有效的