Penguins Unbound
Penguins Unbound > Past Meetings > 20110730 - Bash Programming > Shell Scripting (or old *nix tools) > 03 - Command Line

03 - Command Line

Page last modified 01:05, 30 Jul 2011 by goeko

    The command line is where you interact with the system.

    Common command line file command

    ls - list files

    cd - move into directory

    mkdir - make a directory

    rmdir  - remove a directory

    rm - remove a file

    mv - rename a file

    chmod - change the permission on a file

    chown - change the owner of a file

    chgrp - change the group of a file

     

    File Globbing, file globbing is a

     

    Command History

    Bash will keep a history of all the commands you type.(there is a limit)  You can use the command 'history' to list all your pervious commands.

    You can use emacs editor keys to move through and edit the commands.

    ^p - Previous

    ^n - Next

    ^a - goto begning of line

    ^e - goto end of line

    ^f - go forward a character

    ^b - go back a character

     

    You can also use the command 'script' to record your shell session.

     
    Processes

    & - ability to put a command into the background

    ps - list process on the systerm

    top - a terminal based process list ( can also list by other fields)

    jobs - list process you running associated with this shell

    nice - tool to change the priority of a process

    Powered by MindTouch Core