User Tools

Site Tools


lx103:notes

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
lx103:notes [2024/04/29 02:52]
114.119.137.174 old revision restored (2023/11/08 15:07)
lx103:notes [2024/04/29 06:04]
114.119.145.194 old revision restored (2023/10/13 16:42)
Line 210: Line 210:
  
 ====apt==== ====apt====
-Config file located in ///etc/apt///sources.list important. sources.list.d folder contains official repos.+Config file located in ///etc/apt//sources.list important. sources.list.d folder contains official repos.
   *apt-get update -- updates repo list. DOES NOT UPGRADE.   *apt-get update -- updates repo list. DOES NOT UPGRADE.
- +  *apt-cache search //thing// -- searches packages on local package cache for //thing// to download from server.
-===apt-cache=== +
-  ***search** //thing// -- searches packages on local package cache for //thing// to download from server. +
-  ***stats** -- shows stats based on the metadata downloaded about our repos. +
-  ***depends** apache2 -- shows dependencies for the apache2 package. +
-  ***unmet** -- shows pkgs that have unmet depends. +
   *apt-get install //apache2// - install apache2 + deps from repos.   *apt-get install //apache2// - install apache2 + deps from repos.
   *apt-get upgrade -- upgrades out of date packages.   *apt-get upgrade -- upgrades out of date packages.
-  *apt-get clean -- cleans up local pkg files, temp files, etc. +
-  *apt-get autoclean -- only cleans out packages that are no longer avail in our source repo. These can no longer be downloaded and are largely useless files. +
-  *apt-get install -s php5 -- -s says simulate install php5. useful! +
-  *apt-get install -y php5 -- will auto input YES on prompts. +
-  *apt-get install -y -q php5 -- -q omits some terminal output. +
-  *apt-get source php5 -- this will download the source files php5 and not the PACKAGE php5. +
-  * **apt-get dist-upgrade** -- RTFM, performs upgrade but also handles changing of dependencies of new versions of a package. As a result, some packages may be removed.+
 ======top====== ======top======
 ---- ----
Line 469: Line 457:
   *CMD MODE   *CMD MODE
     * hjkl, move L R U D     * hjkl, move L R U D
-    * 0, SHIFT+0 - move to beginning or END of line. 
     * L - Move to last line of TERMINAL, not DOC     * L - Move to last line of TERMINAL, not DOC
     * H - move me to top of term.     * H - move me to top of term.
Line 488: Line 475:
     * ? - search     * ? - search
     * cc = del line + goto insert mode     * cc = del line + goto insert mode
-    * cw = change word, deletes word and puts you in INSERT mode! Awesome! 
     *      * 
     * EX MODE     * EX MODE
Line 497: Line 483:
     * :wq - write quit     * :wq - write quit
     * :w - write     * :w - write
-    * :r path/to/file - loads contents of that file INTO curr file. 
-    * :!shellCMDhere 
- 
- 
-====== sed Stream Editor ====== 
- 
-  *change first occurrence of parttime to promotion. 
-    * sed '0,/parttime/s/parttime/promotion' employees.txt 
-  * change first occur of parttime to fulltime 
-    * sed 's/parttime/fulltime' employees.txt 
-  * change ALL occurrences of parttime to fulltime 
-    * sed 's/parttime/fulltime/g' employees.txt 
-Can move all space to dots, slashes to spaces, etc etc, powerful stuff. 
-RESUME ME, LINUX ACAD VIDEO @4:30m - LEcture, sed Stream Editor! 
lx103/notes.txt · Last modified: 2024/05/15 04:00 by 114.119.158.167