LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-08-2013, 08:41 PM   #1
qajaq
Member
 
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120

Rep: Reputation: 15
Can ncftp use an alias defined in the .bashrc file on HostMonster?


I just put up a small website on HostMonster. I've downloaded the .bashrc file that came with the site by default, edited it to add one line
Code:
alias lss='ls -AFhl'
which uses the same syntax and punctuation as three alias lines that were pre-recorded in the file. However, when I log onto the server using ncftp and try to use the alias, I get the message "lss: no such command"

I'm guessing this is a problem with the ncftp software not recognizing the alias in the .bashrc file, but that's just a guess. Anyone have any real knowledge or experience with something like this?
 
Old 12-09-2013, 03:24 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
The ftp server dictates which commands can be used (the ? will show you which commands can be used and help <command> for details).

Setting up, for example, an alias on your remote .bashrc will not change what the ftp server permits you to do. Depending on how the ftp server is set up you might be able to escape to the shell by using !
 
  


Reply

Tags
alias, bashrc, ftp, ncftp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
many tcsh aliases work in cygwin but not in fedora when defined in .alias file WrapperMaven Fedora 2 04-16-2011 01:54 PM
[ncftp] how to delete oldest directory and file using ncftp commands booyeeka Linux - Newbie 3 08-17-2010 11:23 AM
making alias, can't find .bashrc file djgerbavore Slackware 10 07-23-2004 08:23 AM
custom xterm title when already defined in .bashrc brian0918 Linux - Software 1 06-01-2004 11:17 AM
alias and bashrc Haldir Linux - Newbie 3 06-14-2002 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration