LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-11-2008, 02:23 PM   #1
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Rep: Reputation: 32
Local tools or server tools?


Hi,

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?

Thanks,
-Joe G.

Last edited by joegumbo; 10-11-2008 at 09:10 PM.
 
Old 10-11-2008, 02:42 PM   #2
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
When you log into another system via ssh or telnet, you are working on their system, using their versions and accessing their files, not yours.

There are always slight differences between the various Linux flavors.
Check which version / distribution they use on their system.
Code:
uname -a
might give you some info and
Code:
echo $BASH_VERSION
should show the version of bash they're using.
 
Old 10-11-2008, 02:43 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You are using the tools on their system. Once you ssh into that system, you are essentially sitting at that system and opening up a terminal.

The differences could just be from older documentation/instructions.
 
Old 10-11-2008, 02:51 PM   #4
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
It seems unanimous.

Thank you niels.horn and bassmadrigal!

-Joe G.
 
Old 10-11-2008, 08:03 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
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.
 
Old 10-11-2008, 08:58 PM   #6
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Hi Woodsman!

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.

Thank you,
-Joe G.

Last edited by joegumbo; 10-11-2008 at 09:42 PM.
 
Old 10-12-2008, 11:01 AM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by joegumbo View Post
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.
 
Old 10-12-2008, 02:17 PM   #8
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Hi GazL,

That makes sense. My user's profile probably is different on the server. They must have "missed one."

Thanks,
-Joe

Last edited by joegumbo; 10-12-2008 at 03:25 PM.
 
  


Reply



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
initrd-tools or initramfs-tools kushalkoolwal Debian 9 12-28-2006 09:11 PM
/tools/bin/env: /tools/bin/bash: No such file or directory DaZjorz Linux From Scratch 21 07-27-2005 07:11 AM
cdda ripping tools: what tools are good these days? jgombos Linux - Software 3 01-03-2005 11:09 PM
is there any virtual cd tools like deamon tools on linux ? ixogn Linux - Software 1 02-24-2004 10:19 AM
Server Log Analysis Tools DtC Linux - Software 3 04-22-2003 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:13 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