×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Linux: Difference between revisions

    Content added Content deleted
    imported>dial-213-168-89-189.netcologne.de
    No edit summary
     
     
    (21 intermediate revisions by 4 users not shown)
    Line 1: Line 1:
    What is Linux?
    === What is Linux? ===
    Linux is a clone of the operating system UnIX, written from scratch by LinusTorvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UnIX Specification compliance.


    Linux is an [[UNIX]] compatible [[operating system]] *kernel*.
    It has all the features you would expect in a modern fully-fledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management, and Tcp/IP networking.


    A kernel is but one (very important) part of an [[operating system]].
    Linux was first developed for 32-bit x86-based PCs (386 or higher). These days it also runs on (at least) the Compaq AlphaAXP, SunSPARC and UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC VAX, AMD x86-64 and CRIS architectures.


    This kernel was written from scratch by [[Linus Torvalds]] with assistance from a loosely-knit team of [[hacker]]s across the [[Internet|net]]. It aims towards [[POSIX]] and Single UNIX Specification compliance.
    Linux is easily portable to most general-purpose 32- or 64-bit architectures as long as they have a paged memory management unit (PMMU) and a port of the GNU C compiler (gcc).

    Combined with the [[GNU]] utilities you get [[GNU/Linux]] which is the correct term for an complete [[OS]].

    It has all the features you would expect in a modern fully-fledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management, and [[TCP]]/[[IP]] [[network]]ing.

    Linux was first developed for 32-bit x86-based [[PC]]s (386 or higher). These days it also runs on (at least) the Compaq AlphaAXP, [[SunSPARC]] and UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC [[VAX]], AMD x86-64 and CRIS architectures.

    Linux is easily portable to most general-purpose 32- or 64-bit architectures as long as they have a paged memory management unit (PMMU) and a port of the [[GNU]] [[C]] compiler ([[gcc]]).

    === Some basic commands ===

    These [[Unix]] compatible 'commands' are not part of the Linux kernel. The are all separate programs that are used on many other [[operating systems]]. The unifying property of these commands is that they are all FreeSoftware, and most all are CopyLeft.

    <table>
    <tr><th colspan="3">[[GNU]]/[[Linux]]/[[Unix]] commands A-Z</th></tr>
    <tr><th>''command''</th><th>''description''</th><th>''examples''</th></tr>
    <tr><td>[[bc]]</td><td>binary calculator</td><td>bc</td></tr>
    <tr><td>[[cat]]</td><td>concatenate files and print on standard output</td><td>cat >test , cat file1 file2 >file3</td></tr>
    <tr><td>[[cd]]</td><td>change working directory</td><td>cd ~</td></tr>
    <tr><td>[[chmod]]</td><td>change file access permissions</td><td>chown guest.users filename</td></tr>
    <tr><td>[[chown]]</td><td>change owner and group of a file</td><td>chmod u+x filename, chmod 770 filename</td></tr>
    <tr><td>[[cmp]]</td><td>compare two files byte by byte</td><td>cmp file1 file2</td></tr>
    <tr><td>[[cp]]</td><td>copy a file or directory</td><td>cp -d -p -R</td></tr>
    <tr><td>[[date]]</td><td>show system date</td><td>date</td></tr>
    <tr><td>[[df]]</td><td>show free disk space</td><td>df -h</td></tr>
    <tr><td>[[diff]]</td><td>find differences between two files</td><td>diff -u file1 file2</td></tr>
    <tr><td>[[du]]</td><td>show disk use of file(s) or directory</td><td>du -s</td></tr>
    <tr><td>[[echo]]</td><td>display a line of text</td><td>echo "Hello world"</td></tr>
    <tr><td>[[fg]]</td><td>bring a process to the foreground</td><td>fg [jobnr]</td></tr>
    <tr><td>[[find]]</td><td>find files on name, date, owner, permissions etc</td><td>find ./ -name *.kdelnk </td></tr>
    <tr><td>[[ftp]]</td><td>File transfer protocol</td><td>ftp ftp.nluug.nl</td></tr>
    <tr><td>[[grep]]</td><td>print lines matching a pattern </td><td>ls -alR |grep txt</td></tr>
    <tr><td>[[head]]</td><td>show first lines of text file</td><td>head textfile</td></tr>
    <tr><td>[[irc]]</td><td>Internet Relay Chat</td><td>irc -c #squat fnord irc.xs4all.nl</td></tr>
    <tr><td>[[jobs]]</td><td>show running or stopped jobs</td><td>jobs</td></tr>
    <tr><td>[[kill]]</td><td>kill a process</td><td>kill -9 PID</td></tr>
    <tr><td>[[killall]]</td><td>kill process by name</td><td>killall -9 netscape, killall -HUP daemon</td></tr>
    <tr><td>[[less]]</td><td>a better version of more </td><td>less textfile</td></tr>
    <tr><td>[[ls]]</td><td>list files in directory</td><td>ls -a -l -R</td></tr>
    <tr><td>[[lynx]]</td><td>A text browser</td><td>lynx http://squat.net/ascii</td></tr>
    <tr><td>[[mail]]</td><td>Basic mail implementation</td><td>echo "Test" | mail -s "Test" guest</td></tr>
    <tr><td>[[man]]</td><td>show manual page on command</td><td>man command</td></tr>
    <tr><td>[[mkdir]]</td><td>make directory</td><td>mkdir newdir</td></tr>
    <tr><td>[[more]]</td><td>view text file screen by screen</td><td>more textfile</td></tr>
    <tr><td>[[mv]]</td><td>move file or directory to another place</td><td>mv file1 file2</td></tr>
    <tr><td>[[ncftp]]</td><td>A better ftp client</td><td>ncftp -u username ftp.nluug.nl</td></tr>
    <tr><td>[[netstat]]</td><td>Show network statistics</td><td>netstat -r</td></tr>
    <tr><td>[[pico]]</td><td>edit a text file</td><td>pico filename</td></tr>
    <tr><td>[[pine]]</td><td>A mail client</td><td>pine</td></tr>
    <tr><td>[[ping]]</td><td>Send small package to check if a machine is up & reaction time</td><td>ping localhost</td></tr>
    <tr><td>[[ps]]</td><td>show currently running processes</td><td>ps aux</td></tr>
    <tr><td>[[pwd]]</td><td>print working directory</td><td>pwd</td></tr>
    <tr><td>[[rm]]</td><td>remove a file or directory</td><td>rm -r -f</td></tr>
    <tr><td>[[rmdir]]</td><td>remove directory</td><td>rmdir newdir</td></tr>
    <tr><td>[[sort]]</td><td>sort a file</td><td>sort filename</td></tr>
    <tr><td>[[ssh]]</td><td>A more secure version of telnet</td><td>ssh -l username host.domain</td></tr>
    <tr><td>[[tail]]</td><td>show last lines of text file</td><td>tail -f textfile</td></tr>
    <tr><td>[[telnet]]</td><td>Remote login</td><td>telnet dds.dds.nl</td></tr>
    <tr><td>[[top]]</td><td>display top CPU processes</td><td>top</td></tr>
    <tr><td>[[touch]]</td><td>change file timestamps</td><td>touch -t 10210000 filename</td></tr>
    <tr><td>[[tr]]</td><td>translete or delete characters</td><td>echo "test" | tr [:lower:] [:upper:]</td></tr>
    <tr><td>[[uniq]]</td><td>show only the diffenent lines from a text file</td><td>uniq filename</td></tr>
    <tr><td>[[uptime]]</td><td>show the time the system is running (and system load)</td><td>uptime</td></tr>
    <tr><td>[[vi]]</td><td>the unix text editor </td><td>vi filename</td></tr>
    <tr><td>[[wc]]</td><td>count bytes, words and lines in files</td><td>wc -l filename</td></tr>
    <tr><td>[[who]]</td><td>show who is logged on</td><td>who</td></tr>
    <tr><td>[[whoami]]</td><td>print effective userid</td><td>whoami</td></tr>
    <tr><td>[[yes]]</td><td>output a string repeatedly until killed</td><td>yes hello</td></tr>
    </table>

    The best way to find information on how to use a command is the man command. This command tells you a lot of specific information on a command. Try '''man man''' for a start.

    === Some handy function keys ===

    <table>
    <tr><th>Linux Function keys</th></tr>
    <tr><td>[CTRL]-z</td><td>Bring a program to the background</td></tr>
    <tr><td>[CTRL]-c</td><td>Stop a program</td></tr>
    <tr><td>[CTRL]-d</td><td>End of input file</td></tr>
    <tr><td>[ALT]-[F1]..[F6]</td><td>Switch to terminal TTY1..6 (depends on configuration)</td></tr>
    <tr><td>[ALT]-[F7]</td><td>Switch to X (if running)</td></tr>
    <tr><td>[CTRL]-[ALT]-[F1..6]</td><td>Switch from X to text terminal</td></tr>
    <tr><td>[CTRL]-[ALT]-[BACKSP]</td><td>Kill X-window (in mode 5, X will restart)</td></tr>
    <tr><td>[CTRL]-[ALT]-[DEL]</td><td>Reboot or halt (depends on configuration)</td></tr>
    </table>

    copied and extended from: [[PUSCII]] - # http://www.puscii.nl/

    === Related ===

    --> [[Debian]],[[GNU]],[[::Category:Linux Distributions]],[[Linus Torvalds]],[[FSF]],[[Unix]]


    * [http://applications.linux.com/article.pl?sid=04/11/16/1555246&tid=13&tid=47 Linux CD/DVD Recording]

    * [http://www.linux-praxis.de/download/index.html Linux Lernmaterial]

    === deutsch ===

    [[Linux_Study_Guides|Deutschsprachige Linux Study Guides als PDF]]


    === How to pronounce Linux? ===

    [http://www.paul.sladen.org/pronunciation/torvalds-says-linux.wav Like Linus Torvalds says it]

    === Jargon ===

    <jargon />

    [[Category:Operating Systems]]
    [[Category:Computer]]
    [[Category:Linux]]

    Latest revision as of 17:59, 8 December 2008

    What is Linux?[edit]

    Linux is an UNIX compatible operating system *kernel*.

    A kernel is but one (very important) part of an operating system.

    This kernel was written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the net. It aims towards POSIX and Single UNIX Specification compliance.

    Combined with the GNU utilities you get GNU/Linux which is the correct term for an complete OS.

    It has all the features you would expect in a modern fully-fledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management, and TCP/IP networking.

    Linux was first developed for 32-bit x86-based PCs (386 or higher). These days it also runs on (at least) the Compaq AlphaAXP, SunSPARC and UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC VAX, AMD x86-64 and CRIS architectures.

    Linux is easily portable to most general-purpose 32- or 64-bit architectures as long as they have a paged memory management unit (PMMU) and a port of the GNU C compiler (gcc).

    Some basic commands[edit]

    These Unix compatible 'commands' are not part of the Linux kernel. The are all separate programs that are used on many other operating systems. The unifying property of these commands is that they are all FreeSoftware, and most all are CopyLeft.

    GNU/Linux/Unix commands A-Z
    commanddescriptionexamples
    bcbinary calculatorbc
    catconcatenate files and print on standard outputcat >test , cat file1 file2 >file3
    cdchange working directorycd ~
    chmodchange file access permissionschown guest.users filename
    chownchange owner and group of a filechmod u+x filename, chmod 770 filename
    cmpcompare two files byte by bytecmp file1 file2
    cpcopy a file or directorycp -d -p -R
    dateshow system datedate
    dfshow free disk spacedf -h
    difffind differences between two filesdiff -u file1 file2
    dushow disk use of file(s) or directorydu -s
    echodisplay a line of textecho "Hello world"
    fgbring a process to the foregroundfg [jobnr]
    findfind files on name, date, owner, permissions etcfind ./ -name *.kdelnk
    ftpFile transfer protocolftp ftp.nluug.nl
    grepprint lines matching a pattern ls -alR |grep txt
    headshow first lines of text filehead textfile
    ircInternet Relay Chatirc -c #squat fnord irc.xs4all.nl
    jobsshow running or stopped jobsjobs
    killkill a processkill -9 PID
    killallkill process by namekillall -9 netscape, killall -HUP daemon
    lessa better version of more less textfile
    lslist files in directoryls -a -l -R
    lynxA text browserlynx http://squat.net/ascii
    mailBasic mail implementationecho "Test" | mail -s "Test" guest
    manshow manual page on commandman command
    mkdirmake directorymkdir newdir
    moreview text file screen by screenmore textfile
    mvmove file or directory to another placemv file1 file2
    ncftpA better ftp clientncftp -u username ftp.nluug.nl
    netstatShow network statisticsnetstat -r
    picoedit a text filepico filename
    pineA mail clientpine
    pingSend small package to check if a machine is up & reaction timeping localhost
    psshow currently running processesps aux
    pwdprint working directorypwd
    rmremove a file or directoryrm -r -f
    rmdirremove directoryrmdir newdir
    sortsort a filesort filename
    sshA more secure version of telnetssh -l username host.domain
    tailshow last lines of text filetail -f textfile
    telnetRemote logintelnet dds.dds.nl
    topdisplay top CPU processestop
    touchchange file timestampstouch -t 10210000 filename
    trtranslete or delete charactersecho "test" | tr [:lower:] [:upper:]
    uniqshow only the diffenent lines from a text fileuniq filename
    uptimeshow the time the system is running (and system load)uptime
    vithe unix text editor vi filename
    wccount bytes, words and lines in fileswc -l filename
    whoshow who is logged onwho
    whoamiprint effective useridwhoami
    yesoutput a string repeatedly until killedyes hello

    The best way to find information on how to use a command is the man command. This command tells you a lot of specific information on a command. Try man man for a start.

    Some handy function keys[edit]

    Linux Function keys
    [CTRL]-zBring a program to the background
    [CTRL]-cStop a program
    [CTRL]-dEnd of input file
    [ALT]-[F1]..[F6]Switch to terminal TTY1..6 (depends on configuration)
    [ALT]-[F7]Switch to X (if running)
    [CTRL]-[ALT]-[F1..6]Switch from X to text terminal
    [CTRL]-[ALT]-[BACKSP]Kill X-window (in mode 5, X will restart)
    [CTRL]-[ALT]-[DEL]Reboot or halt (depends on configuration)

    copied and extended from: PUSCII - # http://www.puscii.nl/


    Related[edit]

    --> Debian,GNU,[[::Category:Linux Distributions]],Linus Torvalds,FSF,Unix


    deutsch[edit]

    Deutschsprachige Linux Study Guides als PDF


    How to pronounce Linux?[edit]

    Like Linus Torvalds says it

    Jargon[edit]

    <jargon />

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.