Likes Likes:  0
Resultaten 1 tot 15 van de 37
Pagina 1 van de 3 1 2 3 LaatsteLaatste
Geen

Onderwerp: Putty + commands?

  1. #1
    Putty + commands?
    geregistreerd gebruiker
    23 Berichten
    Ingeschreven
    06/06/07

    Locatie
    Utrecht

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: Ja
    KvK nummer: nvt
    Ondernemingsnummer: nvt

    Thread Starter

    Putty + commands?

    Hallo, ik heb een dedicated server met SSH, nou draai ik er gameservers op.
    Nou had ik er wat vragen over.

    1. Hoe kan ik bijv een tar laten installen? ( dit kan ook via mijn cpanel maar altijd handig stel dat dit eens niet werkt )

    2. Hoe stel ik een commandline in via ssh? ( normaal doe je dit via FTP )

    3. Het gaat om de Game Call of Duty 2, dit spel heeft een console, kan ik deze ook beheren via SSH?

    4. Zijn er nog meer handige commands voor putty?

    5. offtopic: Je kan een treintje over je beeld laten komen in putty, wat is de command? Hehe

    Alvast bedankt

    Milan "ziqz" van der Meer

  2. #2
    Putty + commands?
    geregistreerd gebruiker
    2.731 Berichten
    Ingeschreven
    20/05/05

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    6 Berichten zijn liked



    Citaat Oorspronkelijk geplaatst door ziqz Bekijk Berichten
    Hallo, ik heb een dedicated server met SSH, nou draai ik er gameservers op.
    Nou had ik er wat vragen over.
    Common SSH Commands or Linux Shell Commands,
    ls : list files/directories in a directory, comparable to dir in windows/dos.
    ls -al : shows all files (including ones that start with a period), directories, and details attributes for each file.

    cd : change directory · · cd /usr/local/apache : go to /usr/local/apache/ directory
    cd ~ : go to your home directory
    cd - : go to the last directory you were in
    cd .. : go up a directory cat : print file contents to the screen

    cat filename.txt : cat the contents of filename.txt to your screen

    chmod: changes file access permissions
    The set of 3 go in this order from left to right:
    USER - GROUP - EVERONE

    0 = --- No permission
    1 = --X Execute only
    2 = -W- Write only
    3 = -WX Write and execute
    4 = R-- Read only
    5 = R-X Read and execute
    6 = RW- Read and write
    7 = RWX Read, write and execute

    Usage:
    chmod numberpermissions filename

    chmod 000 : No one can access
    chmod 644: Usually for HTML pages
    chmod 755: Usually for CGI scripts


    chown: changes file ownership permissions
    The set of 2 go in this order from left to right:
    USER - GROUP

    chown root myfile.txt : Changes the owner of the file to root
    chown root.root myfile.txt : Changes the owner and group of the file to root


    tail : like cat, but only reads the end of the file
    tail /var/log/messages : see the last 20 (by default) lines of /var/log/messages
    tail -f /var/log/messages : watch the file continuously, while it's being updated
    tail -200 /var/log/messages : print the last 200 lines of the file to the screen

    more : like cat, but opens the file one screen at a time rather than all at once
    more /etc/userdomains : browse through the userdomains file. hit Spaceto go to the next page, q to quit

    pico : friendly, easy to use file editor
    pico /home/burst/public_html/index.html : edit the index page for the user's website.


    File Editing with VI ssh commands
    vi : another editor, tons of features, harder to use at first than pico
    vi /home/burst/public_html/index.html : edit the index page for the user's website.
    Whie in the vi program you can use the following useful commands, you will need to hit SHIFT + : to go into command mode

    :q! : This force quits the file without saving and exits vi
    :w : This writes the file to disk, saves it
    :wq : This saves the file to disk and exists vi
    :LINENUMBER : EG :25 : Takes you to line 25 within the file
    :$ : Takes you to the last line of the file
    :0 : Takes you to the first line of the file

    grep : looks for patterns in files
    grep root /etc/passwd : shows all matches of root in /etc/passwd
    grep -v root /etc/passwd : shows all lines that do not match root

    ln : create's "links" between files and directories
    ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf : Now you can edit /etc/httpd.conf rather than the original. changes will affect the orginal, however you can delete the link and it will not delete the original.


    last : shows who logged in and when
    last -20 : shows only the last 20 logins
    last -20 -a : shows last 20 logins, with the hostname in the last field

    w : shows who is currently logged in and where they are logged in from.
    who : This also shows who is on the server in an shell.

    netstat : shows all current network connections.
    netstat -an : shows all connections to the server, the source and destination ips and ports.
    netstat -rn : shows routing table for all ips bound to the server.

    top : shows live system processes in a nice table, memory information, uptime and other useful info. This is excellent for managing your system processes, resources and ensure everything is working fine and your server isn't bogged down.
    top then type Shift + M to sort by memory usage or Shift + P to sort by CPU usage

    ps: ps is short for process status, which is similar to the top command. It's used to show currently running processes and their PID.
    A process ID is a unique number that identifies a process, with that you can kill or terminate a running program on your server (see kill command).
    ps U username : shows processes for a certain user
    ps aux : shows all system processes
    ps aux --forest : shows all system processes like the above but organizes in a hierarchy that's very useful!

    touch : create an empty file
    touch /home/burst/public_html/404.html : create an empty file called 404.html in the directory /home/burst/public_html/

    file : attempts to guess what type of file a file is by looking at it's content.
    file * : prints out a list of all files/directories in a directory

    du : shows disk usage.
    du -sh : shows a summary, in human-readble form, of total disk space used in the current directory, including subdirectories.
    du -sh * : same thing, but for each file and directory. helpful when finding large files taking up space.

    wc : word count
    wc -l filename.txt : tells how many lines are in filename.txt

    cp : copy a file
    cp filename filename.backup : copies filename to filename.backup
    cp -a /home/burst/new_design/* /home/burst/public_html/ : copies all files, retaining permissions form one directory to another.
    cp -av * ../newdir : Copies all files and directories recurrsively in the current directory INTO newdir

    mv : Move a file command
    mv oldfilename newfilename : Move a file or directory from oldfilename to newfilename

    rm : delete a file
    rm filename.txt : deletes filename.txt, will more than likely ask if you really want to delete it
    rm -f filename.txt : deletes filename.txt, will not ask for confirmation before deleting.
    rm -rf tmp/ : recursively deletes the directory tmp, and all files in it, including subdirectories. BE VERY CAREFULL WITH THIS COMMAND!!!

    TAR: Creating and Extracting .tar.gz and .tar files
    tar -zxvf file.tar.gz : Extracts the file
    tar -xvf file.tar : Extracts the file
    tar -cf archive.tar contents/ : Takes everything from contents/ and puts it into archive.tar
    gzip -d filename.gz : Decompress the file, extract it

    ZIP Files: Extracting .zip files shell command
    unzip file.zip


    Firewall - iptables commands
    iptables -I INPUT -s IPADDRESSHERE -j DROP : This command stops any connections from the IP address
    iptables -L : List all rules in iptables
    iptables -F : Flushes all iptables rules (clears the firewall)
    iptables --save : Saves the currenty ruleset in memory to disk
    service iptables restart : Restarts iptables

    Apache Shell Commands
    httpd -v : Outputs the build date and version of the Apache server.
    httpd -l : Lists compiled in Apache modules
    httpd status : Only works if mod_status is enabled and shows a page of active connections
    service httpd restart : Restarted Apache web server

    MySQL Shell Commands
    mysqladmin processlist : Shows active mysql connections and queries
    mysqladmin drop databasenamehere : Drops/deletes the selected database
    mysqladmin create databasenamehere : Creates a mysql database

    Restore MySQL Database Shell Command
    mysql -u username -p password databasename < databasefile.sql : Restores a MySQL database from databasefile.sql

    Backup MySQL Database Shell Command
    mysqldump -u username -p password databasename > databasefile.sql : Backup MySQL database to databasefile.sql




    kill: terminate a system process
    kill -9 PID EG: kill -9 431
    kill PID EG: kill 10550
    Use top or ps ux to get system PIDs (Process IDs)

    EG:

    PID TTY TIME COMMAND
    10550 pts/3 0:01 /bin/csh
    10574 pts/4 0:02 /bin/csh
    10590 pts/4 0:09 APP

    Each line represents one process, with a process being loosely defined as a running instance of a program. The column headed PID (process ID) shows the assigned process numbers of the processes. The heading COMMAND shows the location of the executed process.

    Putting commands together
    Often you will find you need to use different commands on the same line. Here are some examples. Note that the | character is called a pipe, it takes date from one program and pipes it to another.
    > means create a new file, overwriting any content already there.
    >> means tp append data to a file, creating a newone if it doesn not already exist.
    < send input from a file back into a command.

    grep User /usr/local/apache/conf/httpd.conf |more
    This will dump all lines that match User from the httpd.conf, then print the results to your screen one page at a time.

    last -a > /root/lastlogins.tmp
    This will print all the current login history to a file called lastlogins.tmp in /root/

    tail -10000 /var/log/exim_mainlog |grep domain.com |more
    This will grab the last 10,000 lines from /var/log/exim_mainlog, find all occurances of domain.com (the period represents 'anything',
    -- comment it out with a so it will be interpretted literally), then send it to your screen page by page.

    netstat -an |grep :80 |wc -l
    Show how many active connections there are to apache (httpd runs on port 80)

    mysqladmin processlist |wc -l
    Show how many current open connections there are to mysql


    en Google weet nog meer....
    www.google.nl, het is een soort van zoekmachine. Daar type je dan in: SSH commands en er komen allemmaal hints uit....

  3. #3
    Putty + commands?
    För Sverige i tiden
    2.859 Berichten
    Ingeschreven
    21/02/06

    Locatie
    Egmond Aan Zee / Stockholm Zweden

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    10 Berichten zijn liked


    KvK nummer: 37128170

    1 tm 2+4 kun je allemaal opzoeken op google, gewoon "linux commands" invullen.
    3 de commandline om een spel te starten verschilt per engine, voor counterstrike is deze anders dan voor cod. b.v ./cod_lnxded +exec config.conf +set ip iptje +set port portje +set map mapje enz... deze kun je op google vinden.
    5 dat is een isp geintje...

  4. #4
    Putty + commands?
    geregistreerd gebruiker
    23 Berichten
    Ingeschreven
    06/06/07

    Locatie
    Utrecht

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: Ja
    KvK nummer: nvt
    Ondernemingsnummer: nvt

    Thread Starter
    Maar als een game al loopt? hoe kan ik dan bijvoorbeeld ze rcon via SSH veranderen. of ze commandline of config wijzigen

    ik had nu

    pico /home/game8/startupline.txt

    Maar hij zegt access denied, ik wil dus ze startup line aanpassen maar dat wil die niet.

    Belangrijk is dat ik een CoD2 console via ssh kan beheren dan kan ik alles, bijv als iemand zijn rcon vergeet snel aanpassen zonder dat hij ze hele server moet herstarten.

    Bedankt voor alle snelle reacties, chrish en geert-jan

  5. #5
    Putty + commands?
    geregistreerd gebruiker
    6.041 Berichten
    Ingeschreven
    23/10/04

    Locatie
    Amersfoort

    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    171 Berichten zijn liked


    Functie: Freelance IT Professional
    URL: localhost
    View randytenhave's profile on LinkedIn

    Ik zou haast zeggen dat je eerst het boostcommando moet geven als ro o-m-g (wonko)
    Maar ik wil je toch adviseren eerst een cursusje Linux te doen: www.aklmedia.nl/filedump/linux2003.pdf

    Niet kwaad bedoelt, maar is het niet makkelijker voor je gewoon een Windows server te nemen? Of iemand even (eenmalig) een goed gamecontrolpanel te laten installeren voor je.
    Laatst gewijzigd door wonko; 23/06/07 om 08:26.
    MultiMaak - Voor persoonlijke cadeau's en relatiegeschenken!

  6. #6
    Putty + commands?
    geregistreerd gebruiker
    23 Berichten
    Ingeschreven
    06/06/07

    Locatie
    Utrecht

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: Ja
    KvK nummer: nvt
    Ondernemingsnummer: nvt

    Thread Starter
    Dat is er allemaal al, zoals je al gelezen ( zou kunnen hebben )

    Maar dat wil niet zeggen dat ik niet leergierig ben, ssh commands en een linux curses matchen niet toch? ssh commands zijn anders heb ik me laten vertellen.

  7. #7
    Putty + commands?
    moderator
    4.784 Berichten
    Ingeschreven
    04/11/05

    Locatie
    Gent

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    12 Berichten zijn liked


    Registrar SIDN: ja
    KvK nummer: nvt
    Ondernemingsnummer: 0475284162

    SSH = command line in linux, en dat is gewoon linux systeembeheer. Als iemand ander je iets anders verteld heeft, dan moet je vanaf nu die persoon niet meer geloven.

    (thread verplaatst)

  8. #8
    Putty + commands?
    geregistreerd gebruiker
    561 Berichten
    Ingeschreven
    10/06/06

    Locatie
    Emmeloord

    Post Thanks / Like
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    21 Berichten zijn liked


    Naam: Arie

    Dat treintje gaat trouwens met sl

    Als je debian hebt kan je hem installeren met apt-get install sl.

  9. #9
    Putty + commands?
    geregistreerd gebruiker
    23 Berichten
    Ingeschreven
    06/06/07

    Locatie
    Utrecht

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: Ja
    KvK nummer: nvt
    Ondernemingsnummer: nvt

    Thread Starter
    Haha arieh nu is me dag weer goed, Treintje powerrrrrr hehe

    de server draait CENTos, maar kan ik dan wel wat met die redhat? of zijn die commands anders?

  10. #10
    Putty + commands?
    geregistreerd gebruiker
    2.055 Berichten
    Ingeschreven
    14/07/03

    Locatie
    Goes

    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    43 Berichten zijn liked


    Naam: Sebastiaan Koetsier
    Bedrijf: Sentia BV
    Functie: Senior Network Engineer
    URL: www.sentia.com
    View jskoetsier's profile on LinkedIn

    Citaat Oorspronkelijk geplaatst door wonko Bekijk Berichten
    SSH = command line in linux, en dat is gewoon linux systeembeheer. Als iemand ander je iets anders verteld heeft, dan moet je vanaf nu die persoon niet meer geloven.

    (thread verplaatst)

    SSH != Command line in linux... SSH is een Secure Shell Server, waar je een secure sessie met je server kan opzetten om een shell omgeving te openen in een gedefinieerde shell omgeving (BASH, ZSH, CSG, KORN e.d.). Het beste kun je het vergelijken met je dos prompt, het is de niet grafische omgeving van je server, vaak ook de CLI genoemd (Command Line Interface).

    Beste als je wat meer wilt weten, is gewoon wat boekjes in de winkel kopen over linux of wat documentatie afstruinen op tldp.org ..

    Terzijde is mijn mening, dat je eerst moet leren met je server om te gaan, dan zo maar in het diepe te springen.
    Expert Network Engineer - SENTIA BV (AS8315)

  11. #11
    Putty + commands?
    geregistreerd gebruiker
    23 Berichten
    Ingeschreven
    06/06/07

    Locatie
    Utrecht

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: Ja
    KvK nummer: nvt
    Ondernemingsnummer: nvt

    Thread Starter
    Jullie snappen het denk ik niet, de dedi is al lang in gebruik voor gamehosting, ik ben nu support medewerker, ik kan alles via cpanel maar ik wil het graag leren, de server word nu beheerd door mensen die het wel weten maar ik wil hun niet steeds alles vragen.
    Laatst gewijzigd door ziqz; 23/06/07 om 12:50.

  12. #12
    Putty + commands?
    geregistreerd gebruiker
    2.055 Berichten
    Ingeschreven
    14/07/03

    Locatie
    Goes

    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    43 Berichten zijn liked


    Naam: Sebastiaan Koetsier
    Bedrijf: Sentia BV
    Functie: Senior Network Engineer
    URL: www.sentia.com
    View jskoetsier's profile on LinkedIn

    Citaat Oorspronkelijk geplaatst door ziqz Bekijk Berichten
    Jullie snappen het denk ik niet, de dedi is al lang in gebruik voor gamehosting, ik ben nu support medewerker, ik kan alles via cpanel maar ik wil het graag leren, de server word nu beheerd door mensen die het wel weten maar ik wil hun niet steeds alles vragen.
    Daarom zeg ik: www.tldp.org .. of http://nl.linux.org ..

    Je kan dingen niet "zomaar" even gaan proberen op een productie server, iig is het niet aan te raden.
    Expert Network Engineer - SENTIA BV (AS8315)

  13. #13
    Putty + commands?
    Meneer de Directeur
    12.253 Berichten
    Ingeschreven
    11/05/04

    Locatie
    Valkenswaard / Eindhoven

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    6 Berichten zijn liked


    Registrar SIDN: ja
    KvK nummer: 17186890

    Citaat Oorspronkelijk geplaatst door ziqz Bekijk Berichten
    Jullie snappen het denk ik niet, de dedi is al lang in gebruik voor gamehosting, ik ben nu support medewerker, ik kan alles via cpanel maar ik wil het graag leren, de server word nu beheerd door mensen die het wel weten maar ik wil hun niet steeds alles vragen.
    Ik hoop niet dat je dat gaat proberen in een live omgeving

  14. #14
    Putty + commands?
    geregistreerd gebruiker
    2.055 Berichten
    Ingeschreven
    14/07/03

    Locatie
    Goes

    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    43 Berichten zijn liked


    Naam: Sebastiaan Koetsier
    Bedrijf: Sentia BV
    Functie: Senior Network Engineer
    URL: www.sentia.com
    View jskoetsier's profile on LinkedIn

    Citaat Oorspronkelijk geplaatst door Triloxigen Bekijk Berichten
    Ik hoop niet dat je dat gaat proberen in een live omgeving
    Blijkbaar wel, anders zegt ie het niet..
    Expert Network Engineer - SENTIA BV (AS8315)

  15. #15
    Putty + commands?
    geregistreerd gebruiker
    2.731 Berichten
    Ingeschreven
    20/05/05

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    6 Berichten zijn liked



    Citaat Oorspronkelijk geplaatst door ziqz Bekijk Berichten
    Jullie snappen het denk ik niet, de dedi is al lang in gebruik voor gamehosting, ik ben nu support medewerker, ik kan alles via cpanel maar ik wil het graag leren, de server word nu beheerd door mensen die het wel weten maar ik wil hun niet steeds alles vragen.
    Wat we eigenlijk hier zeggen na aanleiding van jouw posts:: Probeer het allemaal maar eens uit, maar doe dat a.u.b. thuis op een test server / pc. Koop of zoek een rammelbak, een P3 is zelfs al voldoende, en installeer daar CentOS 4.3 een op.

    Begin dan eens met online upgraden naar b.v. naar de laatste versie 4.5 zodat je kennis maakt met de vele functies van yum, test de dingen die je online zou willen doen en bekijk de resultaten....

Pagina 1 van de 3 1 2 3 LaatsteLaatste

Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics