follow me on Twitter

    Subscribe to
    Posts [Atom]


    Learning Fedora Linux

    Saturday, November 08, 2008



    Sticky bit: when viewing the details of a directory file permissions will can start out with several values. If it starts with a "t" that is a sticky bit. This means only the user that created it can delete or alter it.
    setuid: when a directories detail startes with "s". This file is ran as if the user created it has run it, even if another user is trying to execute.
    find: less than ideal way of searching the file system
    locate: searches a database of files on the file system
    updatedb: updates locate database
    whereis: lets you search for where programs are stored
    du: disk usage shows how big files are on disk
    du -sh: shows total of current directory
    df: shows total disk size
    less: shows contents of a file. "/" lets you search down and ? lets you search up.
    head: shows beggining of file
    head -n5 myfile: shows 5 of the first lines of a file
    grep -r 'searchtext' *: searches every file in the directory for the 'searchtext'
    grep -i: ignores case on search
    top: shows system processes
    top d: typing d lets you change the refresh rate
    top r: lets you renice or set a lower priority on a process
    pstree: lets you see a hierarchal tree of owned processes
    xorg: controls graphical system for linux

    ls parameters:
    h: shows sizes in kilo, mega and gigabytes
    S: shows sizes in order size

    keyboard shortcuts:
    ctrl+a: move to beginning of line
    ctrl+e: move to end of line
    ctrl+u: delete whole line
    ctrl+k: delete from cursor to end of line
    ctrl+w: delete from cursor to beginning of word
    alt+d: delete from cursor to end of word
    ctrl+l: clear screen
    ctrl+_: undo all changes since last command
    alt+r: undo change made to line
    alt+l: lower case current word

    ls > outputfile.txt: writes results of command to a file
    ls >> outputfile.txt: add results to existing file
    sort < joenames.txt > joesorted.txt: writes file into command and then back out to another file after sorting.