Terminal command too long and the part ending up in the second line causes a bash error
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
even with the window maximized, now I know this can be solved with \ or / but I rarely ever did that myself in 10 years of linux usage, I'm not a newbie, but whenever those showed up in tasks I had to do, I would be copypasting them from a website.
I know it's because the password is too long for the window because I get thrown the last characters of the password in the error following entering the command :
Code:
bash: ******: event not found
I hid the characters even if its a randomly generated 64 characters password, you never know
I wonder if it will think the single quotes are part of the password now though
It wont, because it doesn't see them - everything you type into the shell is interpreted by the shell and split into individual components ("words") before identifying which of those words are commands and which are arguments and eventually executing the relevant programs with arguments. The single quotes instruct the shell not to perform that splitting within them, so their enclosed text is treated as a single unit, but the quotes are essentially consumed during this step; they do not get passed through to the command.
Another way to avoid word splitting is to put the password in a config file, as in Shruggy's post, which is a better option (though if you can use certificates and disable password logins that's even better).
It wont, because it doesn't see them - everything you type into the shell is interpreted by the shell and split into individual components ("words") before identifying which of those words are commands and which are arguments and eventually executing the relevant programs with arguments. The single quotes instruct the shell not to perform that splitting within them, so their enclosed text is treated as a single unit, but the quotes are essentially consumed during this step; they do not get passed through to the command.
Another way to avoid word splitting is to put the password in a config file, as in Shruggy's post, which is a better option (though if you can use certificates and disable password logins that's even better).
Turns out it's true, curlftpfs worked, but the mnt/ftp/ folder is not recognized as a folder in Caja, I'll try to get in there through terminal but if it doesn't work with the gui, then all reasons I wanted to try curlftpfs for are nullified and I might just as well connect through Caja like with Nautilus. It's apparently faster to use curlftpfs than ssh/sftp hence why I'm going this route. I will consider Shruggy's post once I get this working right from my vps's own instructions wiki though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.