User Tools

Site Tools


notes:unix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:unix [2019/02/27 14:22] – [Notes] bmather2notes:unix [2020/11/04 23:50] (current) – Changed hyperlink to secure variant smalik3
Line 5: Line 5:
 </WRAP> </WRAP>
  
-======Projects======+======Course Notes======
  
-======URLs======+The "man" command can be used on Linux to display the manual of an inputted command. To use this command type "man" followed by a space and then a Linux command. 
 +Example: <code>man cd</code> 
 +This will display the manual for the Linux command "cd". This is very useful for starting off understanding Linux commands. And when in more doubt [[https://www.google.com|Google]] or asking questions to your professor is the answer.
  
-======Notes======+----------------------------------
  
-Commands\\ +The "cd" command is useful for going into directories or folders. 
 +Example: <code>cd</code> 
 +After using "cd" you add the option if which directory/folder you want to go into. Such as "cd familyphotos", you can even get to directories not close to the one you're in like "cd ~/games/somegame/unrelated".
  
-How to claim participation points\\  +----------------------------------
--from lab46 prompt type: 'wcp unix wcp1' (putting the proper week number at the end instead of the 1)\\ +
  
-Commands for your repository\\  +The "mkdir" command is useful for creating folders. 
-(make sure you are in your repository directory)\\ +Example: <code>mkdir</code> 
 +After using "mkdir" you add the name of the folder. For example "mkdir folder" will create a folder named "folder" in whatever directory you are in. You can also use full paths like "mkdir ~/classes/unix" to create a folder that may not be in the same directory as you.
  
--'hg status'  (shows files and whether or not they are tracked)\\  
--'hg add' (begins tracking all untracked files, put a filename at the end to just do one)\\  
--'hg commit -m "description here"' (tracks changes with a comment)\\  
--'hg push' (updates repository with commits) 
- 
-Commands That we Have Learned:\\ 
-(Note: commands are used as written so if capitalized it needs to be capitalized and if a " " is used you need to put what is in there.) 
-  * ls - Lists the files in your current directory. If combined with a -l (ls -l) will give more info including permissions for the files. 
-  * pwd - print the working directory. Will show you where you currently are. 
-  * cd - change directory. Allows you to change your current directory. You can set up the absolute path to go through multiple directories in one command. 
-  * mkdir "name" - make a new directory with the name "name" 
-  * cp "name of file you wish to copy" "where you are copying it" - copies the file and put it somewhere if combined with a -R you copy a directory 
-  * mv "name of file you wish to move" "where to move/new name" - allows you to move a file to a different directory. If in the second argument the name is not a directory it will rename the file to what was imputed." 
- 
- 
-__//**VI**//__\\ 
-//(the greatest text editor known to man...)//\\ 
-//(apparently)//\\ 
- 
--'vi (filename)'  starts editing\\ 
--'vi (line number) (filename)' this will open the file on that line\\ 
- 
- 
-Vi is a moded editing system, invented before the mouse and when keyboards had less keys.\\ 
- 
- 
-**Modes**\\ 
- 
-__Command mode__\\ 
-- This is the starting mode\\ 
-- All other modes are accessed from here\\ 
-- Escape usually brings you here\\ 
-- Nearly every key stands for a command\\ 
-- (see below for commands)\\ 
- 
-__Insert mode__\\ 
-Typing of text happens in this mode\\ 
-These are some ways to start insert mode from command mode:\\ 
--'i' starts insert mode (starts before the current cursor position)\\ 
--'I' starts insert mode (starts the cursor at the beginning of the line)\\ 
--'a' starts insert mode (starts after where the cursor is)\\ 
--'A' starts insert mode (starts the cursor at the end of a line)\\ 
--'o' starts insert mode (starts by creating a new line under the cursor line)\\ 
--'O' starts insert mode (starts by creating a new line above the cursor line)\\ 
- 
- 
-__Other Commands__\\ 
--'v' for visual mode (for selecting large portions visually)\\ 
--'/' starts a search (like a man page)\\ 
--'h' moves cursor left\\ 
--'j' moves down\\ 
--'k' moves up\\ 
--'l' move right\\ 
--'w' moves right one word (w counts . : and the like, but W only spaces) [e does the same but to the end of the word]\\ 
--'b' moves back a word (b, B like w and W)\\ 
--'{' and '}' navigates by paragraph\\ 
--'(number)G' goes to that line number\\ 
--'~' toggles the case where the cursor is\\ 
- 
--'yy' yank line (copy, there are multiple buffers use "(letter) to select)\\ 
--'dd' cut line\\ 
--'cc' change line\\ 
--'p'  is paste (P like o and w)\\ 
--'x'  deletes by character\\ 
-'y', 'c' and 'd' can be used to do by any amount (word line etc)\\ 
-i.e. #yl yanks # of characters to the right\\ 
--'.' repeats the last command\\ 
--':wq' saves and exits\\ 
--':q!' exits without saving\\ 
- 
-You can prefix many of these commands (i.e. with numbers for repitition)\\ 
- 
-======Login Problems====== 
-Some people have reported problems logging into the wiki. There seems to be a few sources of problems experienced: 
- 
-  * User cannot log in. 
-  * User cannot log in using "Secure Login". 
-  * Attempting to connect over **http** versus **https** (ALWAYS USE **https**!!!) 
- 
-If you are confident you are using the correct username and password, and are using a version of Internet Explorer, it is suggested that you use a different browser, such as Firefox, Safari, or Chrome. 
- 
-If the "Secure Login" doesn't seem to be working for you, the behavior seems to occur when user passwords contain symbols like quote marks and asterisks. In which case, you can either: 
- 
-  * Uncheck "Use Secure Login". This sort of defeats the purpose of having security though, so it isn't outwardly recommended. 
-  * Change your password to something that doesn't contain quote marks or asterisks. We don't yet know **exactly** which characters cause this problem, but we suspect it is characters that aren't being properly escaped that could have special syntactical meaning. 
- 
-======Syntax====== 
-For those unfamiliar, here is a page on [[wiki:syntax|wiki editing syntax]] that can be used here. 
- 
-======Course Notes Wiki====== 
-This is a space for members of the UNIX/Linux Fundamentals class to create a source of information reflective and assisting to the course. 
- 
-Aside from assignments that may have you specifically perform operations here, you should contribute when you encounter any of the following: 
- 
-  * Some neat bit of information related to the class 
-  * Some clarification or understanding you've had with respect to concepts in the class 
-  * Organizational/style improvements to existing content 
-  * Questions you have that may deserve a more visual answer 
- 
-=====DokuWiki wrap plugin===== 
-http://www.dokuwiki.org/_media/plugin:wrap_plugin_example2.png 
notes/unix.1551295355.txt.gz · Last modified: 2019/02/27 14:22 by bmather2