02-LinuxCOverview.pptx - CSCE 3600 Principles of Systems...

This preview shows page 1 - 8 out of 39 pages.

CSCE 3600 Principles of Systems Programming Linux, C Overview University of North Texas
Brief History of Unix, Linux, & C 1960s Bell Labs, MIT, and GE developed Multics (Multiplexed Information and Computing Service, one of the earliest multiprocessor operating system ) 1969 Initial Unix version by Thompson & Ritchie 1972 C language developed from B and BCPL 1970s Unix rewritten in C to enable portability 1979 C++, or " C with classes ", developed by Bell Labs 1980s System-V (AT&T) and BSD (Berkeley) versions 1988 IEEE POSIX (Portable Operating System Interface) API (among other things, supports a multithreaded programming interface) 19 91 Linux developed by Linus Torvalds 2016 WSL – Windows Subsystem for Linux 2
What is Linux? 3
Linux Command Structure Linux command is an executable program Interacts with operating system, including kernel and shell Performs requested function(s) called for by user Can be built-in shell command, executable shell script, or executable from compiled source code Multiple commands executed one after another with " ; " command [option1 … optionM] [argument1 … argumentN] Command Name Name of command, add " ./ " prefix if exists in current directory Options Optional switches to indicate mode of operation, usually or – – Arguments Optional data being used or manipulated, such as the filename 4
Command Help Manual Pager Interface to online reference manuals Manual pages, or man pages , contain detailed descriptions of commands, system calls, C library functions, etc. Use man <command> to find information about command Each man page consists of several sections based on information it contains See man man for a list of sections Section 1 Executable programs or shell commands Section 2 System calls Section 3 C library calls Use man n <command> , where n = 1 to 9 5
Command Help (cont’d) GNU Info System Documentation system provides menu-based help about a variety of topics, especially those with inadequate or no man pages Provides links similar to web pages with more information Use info [command] to find information about command Then can use arrow keys on keyboard to navigate the page and hit ENTER to go to link location of cursor Other keystrokes n (next), p (previous), or t (top) to move to logical node Command Help Option Use – –help option for usage information about command apropos Searches man pages for names and descriptions 6
Basic Commands File and Directory Related Commands ls

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture