SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I'm using Slackware 12.1 with the default install and all updates and patches applied.
I'm currently taking an internet Linux course. The course involves me logging into their server via ssh or telnet and executing commands from the CL. I'm observing slight differences in the behavior I'm observing vs the behavior I'm supposed to observe. (For instance, I should be asked for confirmation before rewriting a file, but it's not.)
When I log into their server, am I using the tools on my system (grep, ls, which, find, echo, and so on) to interact with their system? Or, since I'm logged in there, am I using their tools installed on their server to interact with their system? Is there a way to verify what's happening?
Is there a way to force my system to use their tools?
For instance, bash should ask me for confirmation before rewriting a file, but it's not.
You probably have an alias established for the cp command. At a command line (both systems), type the command alias. On your system you likely will find the alias cp='cp -i', which means the cp command is in interactive mode. Likewise for the rm command.
uname -a on their system gives:
Linux zippy.ccac.edu 2.6.9-78.13.EL #1 Wed Oct 8 12:45:16 EDT 2008 i686 i686 i386 GNU/Linux
It's likely they are using FC2 or RH equivalent. (Though if you browse there, it presents itself as a Sun server page.)
This is the output on their system:
alias l.='ls -d .*'
alias ll='ls -l'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
uname -a on mine gives:
Linux slackware 2.6.24.5-smp #2 SMP Wed Apr 30 13:41:38 CDT 2008 i686 Intel(R) Celeron(R) D CPU 3.33GHz GenuineIntel GNU/Linux
This is the output on mine:
alias d='dir'
alias dir='/bin/ls $LS_OPTIONS --format=vertical'
alias ls='/bin/ls $LS_OPTIONS'
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
alias v='vdir'
alias vdir='/bin/ls $LS_OPTIONS --format=long'
It doesn't appear that cp is alias'ed.
It appears as though I'll need to pass '-i' when using their server with cp, rm, rmdir and so on.
I'm observing slight differences in the behavior I'm observing vs the behavior I'm supposed to observe.
Whoever was running the course was probably just a bit sloppy with their course documentation and setup. It may be that the guy who created the documentation had those aliases set up in his profile and therefore documented that behaviour, but that they haven't made the logons used by their actual customers the same.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.