Results 1 to 7 of 7

Thread: [how-to] Ssh

  1. #1

    [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)

  2. #2
    Join Date
    Mar 2006
    Location
    Argentine
    Posts
    19
    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,

  3. #3
    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!

  4. #4
    ^^^ ignore above post

  5. #5
    Join Date
    Dec 2005
    Posts
    1,272
    good job! great guide!

  6. #6
    Thanks a lot, Great guide

  7. #7

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •