LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-05-2010, 12:24 PM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Question How to enter network directory from console?


In GNU/Linux to GNU/Linux? For example there is some Samba-shared dir on Linux machine. And I wanna enter that dir from another Linux machine using Terminal or Virtual Console. In Windows it would start (if I'm not wrong) with "\\...". Then a machne name and so on. But if I wanna do it in Linux, I personally only can use Gnome DE with its network...

So help me please on this.

Last edited by Mr. Alex; 06-05-2010 at 12:59 PM.
 
Old 06-05-2010, 12:42 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
smbmount
 
Old 06-05-2010, 02:37 PM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
also, smbclient !

As AlucardZero suggested, you can mount a share somewhere (lets say, /home/mr.alex/mnt) and from there, change dir to ~/mnt and use any filesystem-based command on the remote share.

or...you can use smbclient to browse the remote dir and remove, rename, copy files to or from the remote share without mounting it.

Code:
miguel@babylon5:~$ smbclient //server/Temp -U anAccountOntheShare%myPassOnTheShare
Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 3.0.33-3.15.el5_4.1]
smb: \> cd Dir1
smb: \Dir1\> ls
  .                                   D        0  Thu May 27 15:12:02 2010
  ..                                  D        0  Mon May 24 09:15:18 2010
  pv_report_v5.py                     A     5424  Thu Mar 18 14:02:47 2010
  RS130.pdf                           A    79092  Mon May  3 16:41:09 2010
...
  eth0_sa_spike.txt                         6119  Fri Feb 26 15:15:03 2010
  pv_report_v6.py                           6861  Mon Mar 29 17:01:59 2010
  io_sa.png                                12016  Fri Feb 26 11:23:21 2010

		49530 blocks of size 8388608. 24278 blocks available
smb: \Dir1\> get io_sa.png
getting file \Dir1\io_sa.png of size 12016 as io_sa.png (469,4 KiloBytes/sec) (average 469,4 KiloBytes/sec)
smb: \Dir1\> quit
miguel@babylon5:~$
smbclient does not need to be an interactive command like above. It can read the standard input from a pipe, which means you can use it even in a script, something like "cat commands.txt | smclient //server/share "

Check the man page to learn what commands you can use with smbclient.

Last edited by marozsas; 06-08-2010 at 12:58 PM.
 
  


Reply

Tags
cd, console, network, samba



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
input of a character from console without pressing enter Bonny Programming 8 10-28-2008 04:50 PM
How can I enter sites via console? SpOmA Linux - General 2 08-26-2005 03:38 PM
Cannot enter NTFS partition directory Metal Martian Linux - Newbie 5 03-08-2004 07:29 PM
Could not enter directory mnt/cdrom mgbgt Linux - Newbie 5 06-17-2003 07:50 PM
how to enter into console mode madiyaan Linux - Newbie 12 05-31-2003 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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