Open main menu

CDOT Wiki β

Changes

ULI101 Lecture 1

471 bytes added, 00:45, 13 September 2019
no edit summary
==Reference Material==
 
*there is a LOT of reference material available on the internet
*a huge amount of Linux documentation has been collected at: [http://en.tldp.org en.tldp.org]*if you prefer a book, a good reference is "''' ''A Practical Guide to Linux Commands, Editors and Shell Programming" '' ''' by Mark Sobell*a huge amount of Linux documentation has been collected at en{||[[Image:Practical-linux-1.jpg|thumb|right|160px|]]|[[Image:Practical-linux-2.jpg|thumb|right|160px|]]|[[Image:Practical-linux-3.tldpjpg|thumb|right|160px|]]|[[Image:Practical-linux-4.orgjpg|thumb|right|160px|]]|}
=Introduction to UNIX=
***Shell (user interface, command interpreter, and some built-in commands), surrounded by
****Utilities (or commands)
*most common shells: Bourne shell ('''sh'''), C shell ('''csh'''), Korn shell ('''ksh'''), Bourne again shell ('''bash'''), TC shell ('''tcsh'''), Z shell ('''zsh''')
*we'll mostly be concerned with the Bash shell, which is the most popular Linux shell
*the Korn shell is the most popular Unix shell, and is very similar to the Bash shell
==Entering Commands, Logging In & Out==
*to login, use an ssh SSH (or similar) program, and provide ''userid '' and ''password''*to backspace (erase), usually '''backspace''', '''control-h''', or '''control-backspace'''*to interrupt a process, usually '''control-c'''*to logout, use <code>exit</code>, <code>logout</code>, or '''control-d'''*use <code>passwd </code> to change password
*command line arguments can be separated by one or more spaces or tabs
*Make sure that you have access to the Matrix server:
**your Matrix account should be the same userid and password as your Seneca Email and Blackboard accounts
**if you don't already have a Matrix account, follow this link: https://matrix.senecac.onsenecacollege.ca/selfservice/agree/agreement.php**contact [mailto:servicedesk@senecacollege.ca servicedesk@senecacollege.ca ] in case of problems
=Live Linux=
**to run Live Linux (Knoppix) in a Virtual Machine using Oracle VirtualBox, you can choose Knoppix from your MyApps as soon as you log into Windows.
**In case Knoppix does not show up in your MyApps after you login, you may look for C:\Knoppix\Knoppix.vbox and double click on the icon. NOTE: This may only work for computers located on campus.
**to use Knoppix from your home machine, or on your laptop, you will need to download and install Oracle VirtualBox for your operating system first and then download the [https://ict.senecacollege.ca/~fac/uli101/Knoppix.zip Knoppix VirtualBox VM ] (approx 5GB file and this might take a while to download):***Unzip the downloaded zip file (Right click and Select "Extract All")***Read and follow the instructions in the PLEASE-README-FIRST.txt file. It has instructions for running Knoppix on your home machine.***Should you still have difficulty running Knoppix on your home machine/laptop you may ask your instructor or the Learning Centre ULG leaders for additional help in troubleshooting why Knoppix was not working on your home machine/laptop.
=Some Commands=
*<code>pwd</code> will show your current directory
*<code>cd</code> is used to change current directory, eg. <code>cd directory-name</code>
*<code>ls</code> lists information about files and directories
**<code>ls -a</code> all files (including hidden)