Skip to Main Content

Sirsi Admin

WinScp and Putty

WinSCP has the GUI file management interface where you can drag and drop, create, view, and edit files

Putty is used to access the command line to run APIs


WinSCP Settings:

In order to modify/copy files in Winscp you have to ignore permissions.

Settings (cog) -> Transfer -> Default -> Check "Ignore permission errors"

To add a text editor (such as Notepad++)

Settings (cog) -> Editors -> Add -> External editor (select path to editor)

 

Putty

To connect to the server - use your samID@lnxlibsirsi01 or samID@lnxlibsirsi01d as the host name.

Sirsi user

You have to switch user profiles within putty in order to do some basic functions and run APIs

sudo su - sirsi

enter your samID password

Essentials

chown: change the ownership of files

ex: chown sirsi: FILE_NAME 

cp: copy

ex: cp FILE_NAME NEW_FILE_NAME

Into another directory:

cp FILE_NAME /direcorty/subdirectory

mv: move 

ls (list)

ls –l (list details on file)

rm (remove)

rm –r (remove recursively for directories/sub)

crontab -l  lists scheduled tasks for the user

top (similar to task manager)

Checking disk space. su to sirsi user then type df -h /s  (disk free folder -human readable on /s drive) This will tell you how much space is being used and how much is free and the % of used space (notice 100 - %used = total free space)

unicornadmin -  utility that halts/initializes/runs SPECIFIC servers

auto_haltrun - script to HIR all servers at once

du -sh /s/* check disc size on /s

 

 

Putting a file on the server

To get a file onto the server from another location:

  1. Use WinSCP to drag/drop it in your home directory (/home/mmt001)
  2. Change ownership of the file
    1. chown sirsi: FILE_NAME
  3. Copy (cp) or Move (mv) to the correct path

 

 

Newton Gresham Library | (936) 294-1614 | (866) NGL-INFO | Ask a Question | Share a Suggestion

Sam Houston State University | Huntsville, Texas 77341 | (936) 294-1111 | (866) BEARKAT
© Copyright Sam Houston State University | All rights reserved. | A Member of The Texas State University System