1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PuTTy Command

Discussion in 'Programming' started by KingCobra, Sep 24, 2005.

  1. #1
    Dear, I searched many days for puTTy command over internet. But I didn't find what I want. So I post this for you to help me How to use putty I mean command line...

    After login , how can I enter my directory,
    how to delete a file or folder
    zip/unzip
    download file directly from internnet
    how to come back from a directory
    etc.
    SEMrush
    I think its start .. cd dir/ or something
     
    KingCobra, Sep 24, 2005 IP
    SEMrush
  2. fryman

    fryman Kiss my rep

    Messages:
    9,605
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
  3. iskandar

    iskandar Well-Known Member

    Messages:
    897
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    148
    #3
    iskandar, Sep 24, 2005 IP
  4. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #4
    To change directories: cd /path/to/your/directory
    To delete a file: rm filename
    To delete a directory: rm -rf directoryname
    To unzip a zip file: unzip filename
    To unzip a tar.gz file: tar -xvzf filename
    To zip a file: don't know - try "man zip"
    To change up one directory: cd ..
    two directories: cd ../..

    linux for dummies might be a book that will help get you started. You should definitely have someone do a security check on your linux server - if you are having trouble with these commands, you probably have a few holes that need patching up. Most dedicated servers are not configured very well that I've run into.
     
    nevetS, Sep 25, 2005 IP
  5. KingCobra

    KingCobra Well-Known Member

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Thank you all man
     
    KingCobra, Sep 25, 2005 IP
  6. MiamiHost

    MiamiHost Peon

    Messages:
    238
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    go to the dir you want to upload file/s

    wget h**p://www.yourhost.com/yourfile.tar.gz
     
    MiamiHost, Oct 3, 2005 IP
  7. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #7
    For listing Folders....
    use "ls" instead of "dir"

    For Entering into Directory..
    cd folder_name

    For going back to root...
    cd

    for going back one step...
    cd ..

    For deleting Directory
    rm folder_name

    For Creating tar file...
    tar cvf folder_name.tar folder_name

    For Extracting
    tar -xf folder_name.tar

    For Transfering.. one server to other.. or from one site to other...
    wget hTTp://www.yourhost.com/folder_name.tar

    hope it will help u...
     
    Pathan, Dec 6, 2007 IP
  8. thangluoi

    thangluoi Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #8
    how to download two files in putty? don't tell me to open 2 putty windows.
     
    thangluoi, Dec 28, 2007 IP
  9. mafiatr

    mafiatr Banned

    Messages:
    253
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thanks guys
     
    mafiatr, Sep 21, 2008 IP
  10. deathshadow

    deathshadow Acclaimed Member

    Messages:
    8,750
    Likes Received:
    1,587
    Best Answers:
    227
    Trophy Points:
    515
    #10
    First, let's clarify the terminology for you.

    1) putty is not a command, it is a standalone terminal client.

    2) putty does not have commands. The 'commands' depend on what server you are connected to is using as a shell. In this case, it SOUNDS like you are connecting to BASH. A quick google of 'Bash commands' will tell you what commands are available. Putty can also connect to winblows servers or servers that run entirely different command sets, and even old school dialup BBS systems.

    3) Downloading files in a BASH session will NOT store them on your computer but on the server you are connected to - there really is no practical way to move files from a remote bash session to your local system unless your local system is set up as an FTP server. You want to grab files from your remote system, that's what FTP is for. If your FTP login doesn't have access to the same directories as BASH or whatever shell you are logged into, copy the file to a directory you DO have FTP access to.

    4) This has nothing to do with programming.
     
    deathshadow, Sep 22, 2008 IP
  11. invisible121

    invisible121 Banned

    Messages:
    357
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I was having problem with putty too. thanks for clearing things out deathshadow.. :)
     
    invisible121, Sep 22, 2008 IP
  12. nirajkum

    nirajkum Active Member

    Messages:
    815
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #12
    very well explained deathshow ... its a thin client through which u can use other command also .... like tar , ls , telnet ,ftp
     
    nirajkum, Sep 22, 2008 IP
  13. jameskon

    jameskon Well-Known Member

    Messages:
    2,386
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    175
    #13
    jameskon, Mar 15, 2011 IP
  14. ebiztrendz.com

    ebiztrendz.com Well-Known Member

    Messages:
    664
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #14
    I want to access files under the folder /var/www/html through putty commands for linux.

    Please help. i tried the above but i could not access it.
     
    ebiztrendz.com, Apr 28, 2014 IP
  15. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,630
    Likes Received:
    722
    Best Answers:
    152
    Trophy Points:
    470
    #15
    Really? Does anyone know anything about what they're trying to do? This is basic command line commands for linux. As @deathshadow explained above, more often than not a linux shell to a shared host or similar will be running #bash - look for bash commands.
    And if you want to access /var/www/html via putty, just do a cd /var/www/html when you log in. That assumes that /var/* is a subdirectory of root, of course. And if you don't know what root is, or where the files are, I suggest reading up on "using command line commands in linux" AFTER you've checked out which shell type you're running.
     
    PoPSiCLe, Apr 28, 2014 IP
  16. deathshadow

    deathshadow Acclaimed Member

    Messages:
    8,750
    Likes Received:
    1,587
    Best Answers:
    227
    Trophy Points:
    515
    #16
    I'm just laughing at the bump of a 3 year old thread with a broken engrish gibberish question I cannae even decode.
     
    deathshadow, Apr 28, 2014 IP
  17. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,630
    Likes Received:
    722
    Best Answers:
    152
    Trophy Points:
    470
    #17
    Yeah, I saw the original post-date after I answered, and edited the answer a bit. This forum should maybe set a threshold for commenting on old posts - like if they're more than a year old, remove the ability to comment.
     
    PoPSiCLe, Apr 28, 2014 IP