It appears you have not yet registered with our community. To register please click here.

Origin XT RPG Network Home

SSH Commands.


Jan 11 2005, 01:41 AM (Post #1)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
SSH Commands Guide:
  1. If you do not have a SSH software, I recommend using SSH Secure Shell Client.
  2. This is meant not to be a manual but a quick reference guide
Command: cd
Format: cd /directory/you/want/to/go/to
This command is the most basic and most widely used. The cd command is used to change the Current Working Directory. (CWD)

Command: cp
Format: cp /directory/you/want/to/copy /directory/where/you/want/to/copy/to
The cp command will copy the file or folder you specify in the first portion to the location you specify in the second portion.

Command: mkdir
Format: mkdir /directory/you/want/to/create
The command creates the directory you specify

Command: rmdir
Format: rmdir /directory/you/want/to/delete
The rmdir command deletes the directory or folder you specify.

Command: mv
Format: mv /directory/you/want/to/rename/or/move /new/directory/name/or/location
The mv command will rename or move the file stated in the first portion to the name or location stated in the second portion.

Command: rm
Format: rm filename.pl
The rm command will move the file specified.

Command: tar cvf
Format: tar cvf filename.tar.gz /directory/you/wish/to/archive
This command will tar zip the files in the directory specified in the second portion into a tar file specified in the first portion.

Command: tar -xvf
Format: tar -xvf filename.tar.gz
The tar -xvf will extract all files from the tarball specified into the directory you are currently in.

Command: zip
Format: zip yourfile.zip /file/or/folder/you/want/to/zip
This will create a zip file, with the name specified in the first portion from the file or directory listed in the second portion.

Command: unzip
Format: unzip yourfile.zip
This command will unzip or un pack the named zip file, into the directory you're currently in.

Command: Ls
Format: Ls /directory/you/wish/to/list/files/
The Ls command lists files, and folders within the directory you specify

Command: Ls -f
Format: Ls -f /directory/you/wish/to/list/files/
This will add a forward slash to the directory names within the directory you specify

Command: Ls -a
Format: Ls -a /directory/you/wish/to/list/files/
This will show "hidden" files in the directory you specify

Command: Ls -l
Format: Ls -l /directory/you/wish/to/list/files/
This command shows detailed info about each file in the directory you specify.
Post Options

 
Feb 21 2006, 10:03 PM (Post #2)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
Anyone?
Post Options

Apr 9 2006, 05:05 PM (Post #3)
Peasant

Posts: 1
Cash: 849 / 0
Group: Newbie
Joined: 4/09/06 05:01 PM
Well, basically, all you need to do to tell people how to use commands on SSH is give them a book to unix/linux command line. It all depends on the capabilities of the machine that is being connected to and the operating system that it is running.

Also, do not forget the command ll which is helpful as a root user and will allow you to see the permissions and usergroup as well as the filetype.

This post has been edited by Trucido Aeternus: Apr 9 2006, 05:06 PM
Post Options

Apr 10 2006, 12:54 AM (Post #4)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
o_O Thanks for the comments. Do you do lots of linux?
Post Options