Sometimes you will get invalid character or other errors -- this usually means that the file was created on windows and unix cannot read it.
You can use dos2linux to correct this issue or open a new file in notepad++ after you change the settings --> preferences --> default directory --> Unix.
Then copy paste old windows file into a new unix file
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
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)
To connect to the server - use your samID@lnxlibsirsi01 or samID@lnxlibsirsi01d as the host name.
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
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
To get a file onto the server from another location:
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