Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
to upload files from my Windows PC to my Linux server over ssh i use this program that looks likea ftp client that uses ssh. i normally use putty to logon to my ssh server, and i hate openinig a seperate connection and program just to upload a file. what command can i use to upload a file from my PC (windows) to my linux server which im connected to via ssh?
another thing i'd like for convinance reasons is to know how to do something like... for instance this command i use on text files i create in windows when i upload them to linux
perl -i.bak -pe 's/\r\n/\012/' filename.ext
its alot of letters and stuff to type in. id like to create my own command so i it can be like mycommand filename.ext and it runs that. is something like that very hard to do?
You can use pscp.exe to copy files to an SSH server - it's one of the programs that comes with putty. It doesn't have a GUI but it can use your saved putty sessions. For example the first command line below doesn't use a saved putty session, but the the second one use a saved session called ssh-box:
No - pscp.exe is the windows program that will copy files from your windows box to your SSH server. On the Linux SSH server will already be Linux executables for doing the same thing from the Linux box (scp, sftp, ssh) to other SSH servers.
EDIT: The commands in my earlier post are run on the windows box to copy files to the Linux SSH server.
@chrism01: that's exactly what prasanta was referring to.
And indeed, it should be fairly straight-forward:
1. On Windows, make a shared folder with appropriate permissions and a suitable name of course.
2. On Linux, you can then use "smbmount" or "mount -t smb" to mount the shared folder on your Linux box.
If you want to have it mounted each time you boot your Linux box, you could add it to /etc/fstab.
When inside PuTTY, you can then simply cp from/to the shared folder.
In your case, I recommend sharing & mounting the entire Windows disks, to avoid having to copy (on Windows) the files to the shared folder (ie again, an operation outside PuTTY) to make them available to Linux.