notes:unix
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
notes:unix [2018/11/15 21:42] – [Other] sdiarra | notes:unix [2020/11/04 23:50] – Formatted some, added hyperlink for Google smalik3 | ||
---|---|---|---|
Line 5: | Line 5: | ||
</ | </ | ||
- | ======Projects====== | + | ======Course Notes====== |
- | ======URLs====== | + | The " |
- | **Linux Kernel-Repo (Linus Torvalds)** | + | Example: < |
- | https://github.com/torvalds/linux | + | This will display the manual for the Linux command " |
- | ======Notes====== | + | |
- | ------- | + | |
- | I feel like there should be some beautiful words of knowledge contained on this page, so I have decided | + | |
- | ===Vim/Vi Command Mode Commands=== | + | ---------------------------------- |
- | - Escape key leads to command | + | The " |
+ | Example: < | ||
+ | After using " | ||
- | - ' | + | ---------------------------------- |
- | + | ||
- | - Navigation is accomplished through h (right), j (down), k (up), l (left). | + | |
- | - 'a' leads to insertion mode at the next space. | + | The " |
+ | Example: < | ||
+ | After using " | ||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | with a number, which means you want the command to be executed that many times]. | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - You can also do commands like dw, db, d^, d$, d{, d}, dd which do a delete operation related to the letter after the ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | ------- | ||
- | <color # | ||
- | |||
- | In a sort of a related note, as vi uses some regular expressions patterns, this section will cover regular expressions and pattern matching. In Unix regular expressions are used to give a user/admin the capability to search based on patterns. Regular expressions, | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | - ' | ||
- | |||
- | *These are few common patterns in regex. | ||
- | ======Other====== | ||
- | ------- | ||
- | <color # | ||
- | |||
- | Recently I have discovered a trick that could help run scripts much quicker with direct access to one's lab46 account, without working only on a single a single. Ultimately, I had to ssh into my account, and whenever I left the terminal open for a few minutes, it would go offline - or had share scripts between my personal laptop and lab46 machines, and work on projects on one machine at a time(fairly painful). With this method one can easily call commands anywhere, that are otherwise only available on the lab46 account. Here is how it is accomplished: | ||
- | < | ||
- | ssh account@lab47.corning-cc.edu command_here | ||
- | </ | ||
- | A working example would be the following: | ||
- | < | ||
- | #From my own laptop | ||
- | | ||
- | |||
- | #This example would return grades from the user. | ||
- | |||
- | </ | ||
- | **Note that the script would prompt you to enter your <color # |
notes/unix.txt · Last modified: 2020/11/04 23:50 by smalik3