Overview
Grid users can access the Wayne State University Departmental Shared Drive (W: drive) directly from the Grid login node using smbclient. If you normally access departmental files through the W: drive on your computer, you can access the same shared files on the Grid on the command line.
This article demonstrates how to connect to the W: drive and transfer files between the departmental shared drive and your Grid home or project directories using smbclient.
Connecting to the W: Drive
Connect to the W: drive using the following command, replacing ACCESSID with your Wayne State AccessID. Enter your Wayne State password when prompted:
smbclient //ad.wayne.edu/Departments -U fh5997 -W ad.wayne.edu

Downloading Files from the W: Drive
Downloaded files are saved to your current local working directory on the Grid. You can change this directory using lcd. The lcd command does not display any output when it succeeds.
smb: \> lcd tutorial
smb: \> !pwd
/wsu/home/fh/fh59/fh5997/tutorial
smb: \> get filename.txt
getting file \filename.txt ...
You can view the contents of your current local directory using:
smb: \> !ls
Uploading Files to the W: Drive
Before uploading a file, verify that it exists in your current local working directory.
smb: \> !pwd
/wsu/home/fh/fh59/fh5997/tutorial
smb: \> !ls
results.txt
smb: \> put results.txt
putting file results.txt as \results.txt
smbclient Commands
| Command |
Purpose |
Example |
| ls |
List files and directories in the current remote directory. |
ls |
| pwd |
Display the current directory on the remote SMB share. |
pwd |
| cd |
Change the remote directory. Use quotation marks for names containing spaces. |
cd "Folder Name" |
| lcd |
Change the local Grid working directory. |
lcd tutorial |
| !pwd |
Display the current local Grid working directory. |
!pwd |
| !ls |
List files in the current local Grid working directory. |
!ls |
| get |
Download a file from the SMB share. |
get filename . txt |
| put |
Upload a file to the SMB share. |
put results . txt |
| mget |
Download multiple files matching a pattern. |
mget * . txt |
| mput |
Upload multiple files matching a pattern. |
mput * . csv |
| mkdir |
Create a new directory on the SMB share. |
mkdir Results |
| rm |
Delete a file from the SMB share. |
rm. old_results . txt |
| rmdir |
Remove an empty directory on the SMB share. |
rmdir Results |
| quit |
Exit the smbclient session. |
quit |