first commit
This commit is contained in:
BIN
Semester 1/Computer Systems Internals & Linux/Week 1/.swp
Normal file
BIN
Semester 1/Computer Systems Internals & Linux/Week 1/.swp
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,61 @@
|
||||
## Lecture 1 (12.00)
|
||||
|
||||
- People use base10 because they have 10 fingers
|
||||
- Computers use base2 because they have 1 finger
|
||||
|
||||
## Lecture 2 (15.00)
|
||||
|
||||
### Binary Denary Conversion
|
||||
|
||||
#### Convert to Binary
|
||||
|
||||
- 9 = 00001001
|
||||
- 45 = 00101101
|
||||
- 171 = 10101011
|
||||
- 238 = 11101110
|
||||
|
||||
#### Convert to Denary
|
||||
|
||||
- 00010001 = 17
|
||||
- 00110101 = 53
|
||||
- 10011010 = 154
|
||||
- 10110111 = 183
|
||||
|
||||
### Basic Linux Commands
|
||||
|
||||
- **ls** (list)
|
||||
- **cd** (navigate directory)
|
||||
- **~** - home directory
|
||||
- **/** (root system directory)
|
||||
- **rmdir** (remove directory)
|
||||
- **mkdir** (make directory)
|
||||
- **cp** (copy)
|
||||
- **mv** (move)
|
||||
- **rm** (remove)
|
||||
- **pwd** (print working directory)
|
||||
|
||||
#### **vi** (visual editor)
|
||||
|
||||
- not hype, use for assessments only
|
||||
|
||||
#### **nano** (fork Of Pico editor)
|
||||
|
||||
- hype, use everywhere outside of assessments
|
||||
|
||||
## Workshop 1 (11:00)
|
||||
|
||||
```sh
|
||||
boris@george-thinkpad:~/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1$ vi vi-file.txt
|
||||
boris@george-thinkpad:~/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1$ cat vi-file.txt
|
||||
This is a file created with Vi / ViM
|
||||
boris@george-thinkpad:~/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1$ nano nano-file.txt
|
||||
boris@george-thinkpad:~/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1$ cp vi-file.txt copy-of-vi.txt
|
||||
boris@george-thinkpad:~/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1$ cp -i nano-file.txt copy-of-vi.txt
|
||||
cp: overwrite 'copy-of-vi.txt'? no
|
||||
boris@george-thinkpad:~/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1$ mv copy-of-vi.txt renamed-file.txt
|
||||
boris@george-thinkpad:~/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1$ rm -i renamed-file.txt
|
||||
rm: remove regular file 'renamed-file.txt'? y
|
||||
boris@george-thinkpad:~/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1$ pwd
|
||||
/home/boris/OneDrive/Computer Science Year 1/Computer Systems Internals & Linux/Week 1
|
||||
|
||||
```
|
@@ -0,0 +1 @@
|
||||
This is a text file created with nano
|
@@ -0,0 +1 @@
|
||||
This is a file created with Vi / ViM
|
Reference in New Issue
Block a user