User Tools

Site Tools


journal:spring2019:dtubbs2:week4

Differences

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

Link to this comparison view

journal:spring2019:dtubbs2:week4 [2019/02/07 06:32]
127.0.0.1 external edit
journal:spring2019:dtubbs2:week4 [2019/02/07 16:04] (current)
dtubbs2
Line 1: Line 1:
-=====unix week4=====+=====Unix Week 4=====
 ---- ----
-====MONTH DayYEAR====+====February 72019====
  
-Filler ​text- your entry goes here; remove this line to receive full credit.+**Head command** 
 +Use head command to show you the beginning of a file 
 +Example: "/​usr/​bin/​who | head -4" shows you the first four lines of who command 
 + 
 +**Tail command** 
 +Use tail command to show you the end of a file 
 +Example: "​usr/​bin/​who | tail -4" shows you the last 4 lines of who command 
 +---------------------------------------- 
 +ls will ignore files that start with "​."​ 
 + 
 +ls -a will show you all files, even those that start with "​."​  
 +---------------------------------------- 
 +A double pipe is an "​or"​ operand 
 +---------------------------------------- 
 +vi is text editor 
 + 
 +vi .bashrc allows you to edit bash settings 
 +---------------------------------------- 
 +**CTRL Commands** 
 +Pressing "CTRL D" will log you out 
 +Pressing "CTRL A" will bring you to the beginning of your command ​line 
 +Pressing "CTRL E" will bring you to the end of your command line 
 +Pressing "CTRL H" will backspace, can be used in place of backspace button 
 +Pressing "CTRL I" will tab, can be used in place of tab button 
 +Pressing "CTRL K" will delete from cursor to end of command line 
 +Pressing "CTRL L" will clear the screen 
 +Pressing "CTRL M" or "CTRL J" will act like an enter 
 +Pressing "CTRL N" will act like down button 
 +Pressing "CTRL P" will act like up button 
 +Pressing "CTRL S" will stop transmitting 
 +Pressing "CTRL Q" will continue transmitting 
 +Pressing "CTRL R" will reverse-i-search (history search) 
 +---------------------------------------- 
 +Links2 is a text-based web browser 
 +Wget is a non-interactive network downloader 
 +curl transfers a URL (similar to Wget) 
 +---------------------------------------- 
 +Start typing a file name or path and hitting tab with auto complete the word 
 +Example: "cat dat" then hit tab "cat datafile1"​ will come up as long as no other files start with dat 
 +---------------------------------------- 
 +**How to kill a process from another terminal**  
 +ps command reports a snapshot of the current processes 
 +There are 64 ways to kill a process in Unix 
 +Type "kill -(kill number,i.e. 1) (process id [PID])"​ 
 +Kill -9 is the most powerful kill signal 
 +----------------------------------------
  
journal/spring2019/dtubbs2/week4.txt · Last modified: 2019/02/07 16:04 by dtubbs2