Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNick Ocampo
15,661 PointsResource for managing server files using command line
Does anyone have a good resource for learning how to manage files in a server using ssh in the command line? I'm also interested in learning how to use git to update a live site. If Treehouse staff read this, are there plans of making a tutorial for this or is there an existing one I missed?
Thanks!
3 Answers
Aaron Graham
18,033 Pointshave you checked out this: Git Basics and this: Console Foundations? I haven't finished Git yet, but it will probably get you going in the right direction.
Nick Ocampo
15,661 PointsYeah I did those but they don't really go into SSH or working with servers. Thanks though.
Aaron Graham
18,033 PointsThe console foundations cover quite a few of the commands you will use to work with files on servers. At least it's a good introduction. For things not covered in console foundations, there are a lot of resources on the web. If you are confused about a command or are trying to set up a service, goggling it will usually return a wealth of information. Also, most of the web servers you use will probably be Linux based and probably have a manual system installed. You can use it by typing man command_name
. Man is sometimes tough to understand, but it's usually a good place to start especially if you are just looking for something like the proper switch to use with a command you already know.
As for SSH, unless you need some advanced features, about all you need to know is ssh username@servername
. For instance, to secure shell into your server at example.com, assuming your username is nick, you would use: ssh nick@example.com
. This works if your operating system is *nix based (i.e. Mac, Linux) since they usually come with a ssh client. If you are using Windows, you will need a third party client. I have always used Putty. It's free and really easy to use.
Hope this helps a little more. If you are wondering about specific commands, services, or some of the advanced ssh features, list some specifics, and I would be glad to help as much as I can.
Nick Ocampo
15,661 PointsThat helps a lot. Thanks Aaron. I just didn't know how to begin and how to even ssh in. If that's all that is, I also noticed I can see the list of commands that are being entered by my FTP client, so I'll just look some of those commands in the manual and online.
I'll let you know when I accidentally take my whole server down! :)