Commands for Admin

Commands for Admin

Some of the most important commands for admin. This article is a work in (slow) progress.


Sudo – Give a Single Commands with Root Priviledges

Make me a sandwitch. – Nope.

sudo Make me a sandwitch. – Right away sir.

(Todo: give credit to the author of this joke.)


Package Management – Installing Software

Update list of available packages. Run apt-get update before giving other apt commands.

$ sudo apt-get update

Search for software with keywords, no sudo needed.

$ apt-cache search dungeon adventure

Package name is the part before dash ‘-’. It is needed when installing.

nethack-console - Text-based overhead view D&D-style adventure game

Install software

$ sudo apt-get install nethack-console

Many programs are shown in the applications menu. For most command line applications, you have to find out the right command.

$ dpkg --listfiles nethack-console

Usually, the command is the file in one of the bin/ or game/ directories

/usr/lib/games/nethack

So we run it with

$ nethack

To avoid addiction, only try that nethack runs. Don’t start playing the game.

In fact is best to remove the game

$ sudo apt-get remove nethack


Notes on Nethack

Maybe you shouldn’t start playing Nethack. But if you insist, game is easier to play with numpad enabled.

echo "OPTIONS=number_pad:1">$HOME/.nethackrc
nethack



Posted in Old Site | Tagged , , | 34 Comments

34 Responses to Commands for Admin

  1. Eero Viitamäki says:

    # Did you learn something?
    – Opin paremmin käyttämään Linuxia ja ymmärrän nyt selkeämmin miten se toimii (mm. paketinhallinta).Opin myös käyttämään SSH:ta ja Apachea.
    # Is it useful to you?
    – Kyllä uskoisin että näitä tietoja ja taitoja voi käyttää tulevaisuudessakin.
    # How do you plan to use your skills after the course?
    – Voisin koittaa perehtyä tarkemmin palvelin puoleen koska ne minua lähinnä kiinnostavat. Miten palvelin laitetaan pystyyn, miten sitä hallitaan, miten sitä käytetään jne.
    # How could the course be improved?
    – Voisi olla enemmän materiaalia kurssin sivulla mitä voisi lueskella kotona. Näin ollen ei joutuisi kuseen heti jos kerran jää pois esim. sairauden takia.
    # How was the test?
    – Testi oli aika monipuolinen, siinä oli helppoja ja vaikeita kysymyksiä.
    # Would you recommend this course to your friends or collegues?
    – Kyllä tätä kurssia voisi suositella kavereilla. Vaikka Tero välillä innostuukin ja opetustyyli on aika hektistä ja tietoa tulee malliin sarjatuli niin kyllä äijä tietää kuitenkin mistä puhuu. Itse olisin hieman rauhallisempaa tahtia kaivannut ja materiaaleja mitä voisi itse lueskella kotona. Muuten ihan hyvä kurssi.