Show activity on this post. To make Bash behave case-insensitively, edit your ~/.inputrc (create it if it doesn't exist) and add. set completion-ignore-case on. start a new shell (type bash or close the terminal and open a new one) or source ~/.inputrc, and then try. cd dow Tab. and watch it . Unix Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up. · I try to use an executable script (wkhtmltopdf) on a Linux shared webserver (Debian, 64bit). I am pretty sure that I compiled everything correct, but whenever I want to execute the file I get as an response: ./wkhtmltopdf -H -bash./wkhtmltopdf: No such file or directory To be sure that the file is there, here the ls output.
Bonus: cd ~user means "cd to user's home directory. You can jump multiple directory levels with cd../.., etc.. Go back to the most recent directory with cd -. is shorthand for "this directory", so cd. won't do much of anything [ Back to Table of Contents ] The things we type into the command line are called commands, and they always execute some machine code stored somewhere on your computer. What you (probably) really wanted was the relative path from within your users home directory: "Downloads" or "Documents". So try "cd Downloads" and "cd Documents". Be aware linux file systems are case sensitive: "Downloads" and "downloads" is not the same item. Show activity on this post. To make Bash behave case-insensitively, edit your ~/.inputrc (create it if it doesn't exist) and add. set completion-ignore-case on. start a new shell (type bash or close the terminal and open a new one) or source ~/.inputrc, and then try. cd dow Tab. and watch it complete to. cd Downloads/.
See -bash: cd: Desktop: No such file or directory. But the $(ls -d -1dt -- */ | head -n 1) is not wrong in the output. Thus the reason must be the different usage of sh and bash in that moment. The ~ (highlighted above) means that you are in your home directory. Downloads is in your home directory, so cd Downloads will change you to that sub-directory, and your prompt will then show. As always, use man ls and man pwd to find out what those commands actually do. to see what's in the root (/) directory. Code: Select all. cd /home/bakamono bakamono@HydroSpace ~ $ cd ~/downloads. Cosmo solved it for you, so just a note: " cd " by itself = " cd /home/bakamono ". If you're in /home/bakamono, you don't need to do cd ~/Downloads, you just do cd Downloads. Please edit your original post title to include [SOLVED] if/when it is solved!.
0コメント