hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : VPS Tutorials : [how-to] Ssh
Reply

VPS Tutorials Tutorials related to VPS.
Forum Jump

[how-to] Ssh

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-25-2006, 05:45 PM
djbob djbob is offline
WHT Addict
 
Join Date: Feb 2005
Posts: 116

[how-to] Ssh


This is a guide on some simple commands on SSH that you should know when you start using a VPS.

cd
Use this command to change your current directory. The root of the hard disk is "/". The current directory "./". The parent directory of the current one is "../", and it's parent is "../../", etc. Most commands will assume the current folder if you try manipulating a file with establishing a path. /usr/local is where you will find most software, including Apache and most control panels, such as cPanel.
d/dir
This command lists the contents of a directory. You can add a path to the end of this command to list all the contents of that folder, or you can just leave it without a parameter to list all the contents off the current folder.
cp
This command copies files. The syntax is to first write the current path of the file(s), and then the destination. In order to copy full folders, and add a /* to the end of the path of your folder. You don't need to modify the destination at all. If you want to copy without questioning any overwrites, use cp -f (f = force).
vi
This is Linux's sort of "notepad." See here for more info: http://www.comptechdoc.org/os/linux/...inux_ugvi.html.
chmod
You can modify permissions on files using this command. The syntax is to first write the permissions you want (eg. 444, 644, 777), and then give the path to the file you want to modfiy.
tail
This will give you the end contents of a file you specify. Handy for viewing small files or log files without going into a text editor.
locate
Will find any files in your system under the name you specify.
rm
Will remove a file. Use rm -f /path/* to removed all files from folder "path."
rmdir
Will remove a directory. However, it must be empty.
mkdir
Make a new directory.
tar
Untar or untar-gzip a file. Use tar -xzf for untar-gzipping.
top
Will give you some system details, kind of like Task Manager.
du
Will check your disk usage.
httpd
On most systems, this refers to Apache's httpd daemon. Typing it in with any parameters should "start" httpd. If this is not the case, it is probably calling apachectl. This httpd will be located in /path/to/apache/bin/httpd.
apachectl
This is a kind-of Apache monitor. It allows you to start, stop, restart, etc. Apache.
apxs
This is used for installing modules into Apache. See here: http://httpd.apache.org/docs/1.3/programs/apxs.html.
lynx
This is Linux's built in text browser. In order to scroll links, use the up and down keys.

Additional resources:
http://httpd.apache.org/docs/1.3/programs/apxs.html (another SSH guide on WHT)
https://www.powervps.com/support/ind...&kb_rating=yes (SSH newbie guide)
http://www.ss64.com/bash/ (a simple guide of basic Linux command line functions)
http://www.oreillynet.com/linux/cmd/ (a complete guide of most SSH commands)

Reply With Quote


Sponsored Links
  #2  
Old 03-15-2006, 08:48 AM
Frion Frion is offline
Newbie
 
Join Date: Mar 2006
Location: Argentine
Posts: 13
man - It provides greater information about a asked for mandate

ps - List the processes that are executed at the moment

find - Used to locate a file/folder

more - Used to unfold the text of a file by screens
Ej.: more /home/lpt/file1.txt

cat - Used to visualize the contents of a file
Ej.: cat /home/lpt/file1.txt

Thanks,

Reply With Quote
  #3  
Old 04-02-2006, 12:30 PM
Ice_Cream Ice_Cream is offline
Newbie
 
Join Date: Apr 2006
Posts: 5
I am *totally* new to all of this...

Totally having trouble setting my VPS up, I didn't get it for all the extra access, I got it coz my previous host kicked me off as my website was using too much CPU resources from the amount of users on my php photo gallery...

Anyway, I wanted to ask some stuff...

When I login in ssh I get a message telling me to type help to view all available commands, but only a few come up, not the ones written here. This is what I get:

***

Welcome to vmsh version 0.55

Type help to see a list of commands

[tokiohot@host3 vmsh]# help

Virtual Machine Commands
console - attach to vm console
boot - boot last booted vm
shutdown - shutdown vm
reboot - shutdown, then boot vm
status - view vm status
uptime - view vm uptime
version - view vm kernel version
loadavg - view vm load average
iostatus - view current vm IO usage

Host Commands
hostload - view your current host cpu utilization

Vmsh Commands
exit - exit, disconnect from vmsh
help - display this screen
[tokiohot@host3 vmsh]#

***

So I am totally confused at what I am doing and really don't have a clue how to install apache, sql, cpanel etc

And what does the command "console" mean? It asks me to login, so I type the username then when I try to type the password no characters appear. I am *so* confused.

Any help *really* would be appreciated!

Reply With Quote
Sponsored Links
  #4  
Old 04-03-2006, 10:39 AM
Ice_Cream Ice_Cream is offline
Newbie
 
Join Date: Apr 2006
Posts: 5
^^^ ignore above post

Reply With Quote
  #5  
Old 04-09-2006, 12:26 PM
h4wk h4wk is offline
Web Hosting Master
 
Join Date: Dec 2005
Posts: 1,270
good job! great guide!

Reply With Quote
  #6  
Old 04-09-2006, 08:11 PM
Jarritos Jarritos is offline
Newbie
 
Join Date: Aug 2002
Posts: 10
Thanks a lot, Great guide

Reply With Quote
  #7  
Old 04-24-2006, 09:36 AM
lirane1 lirane1 is offline
New Member
 
Join Date: Apr 2006
Posts: 3
Ram Memory

Hi,

My vps hosting promised me 256 mb of memory
do they kept their promise?

total: used: free: shared: buffers: cached:
Mem: 6348734464 6254764032 93970432 0 1537048576 2691256320
Swap: 12889001984 3095965696 9793036288
MemTotal: 6199936 kB
MemFree: 91768 kB
MemShared: 0 kB
Buffers: 1501024 kB
Cached: 1758636 kB
SwapCached: 869544 kB
Active: 3602648 kB
Inactive: 2173040 kB
HighTotal: 2653952 kB
HighFree: 57208 kB
LowTotal: 3545984 kB
LowFree: 34560 kB
SwapTotal: 12586916 kB
SwapFree: 9563512 kB

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?