-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecondLabNotes.txt
More file actions
55 lines (44 loc) · 1.7 KB
/
secondLabNotes.txt
File metadata and controls
55 lines (44 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//==================================================================================================================
GENERAL LINUXOS STUFF
//==================================================================================================================User/group management in linuxOS:
add user: adduser [new_account] OR useradd[new_account]
edit user attribvutes: usermod
remove user: userdel -remove [user[]
add group: groupadd
adding user to group: usermod
remove a group: groupdel
Process management with ps and kill
- Process: Instance of computer program in execution
- ps: list processes that are currently running
- kill: terminate a running process
kill <PID>
Daemon:
- A process that runs in the background
- Example: cron
- Enables users to shcedule jobs to run periodically at certain times (cron jobs)
- Usage: Full backup every month
diff command:
shows differences in files
echo "Hello" > file1
echo "Helloo" > file2
diff file1 file2
:
1c1
< Hello
---
> Helloo
wget: download things off of the
- Non-interactive network downloader
//==================================================================================================================
EMACS
//==================================================================================================================
Emacs is:
- Customizeable (users can customize font, colors, etc... in ~/emacs without programming)
- Extensible (run lisp scripts to define new commands)
- Self Documenting (C-h r [manual] and C-h t [tutorial])
- Real-time (edits are displayed on screen as they occur)
Basic Editing (SLIDES)
Directory edit and navigate:
- C-x d
- Allows you to operate on files
- Allows you to nagivate file system