Linux Debian
Basic Concept
Application running in user space can access kernel resources by directly invoking Linux system calls or by invoking libc (or glibc)-provided API calls. In the latter case, libc (or glibc) invokes a Linux system call.
Drivers in user space can directly access hardware, can access a Linux system call, or can access libc (or glibc) APIs. libc (or glibc) is an example library running in user space; there are many more such user space libraries.
bash
is a Unix shell, a user command line interface (CLI). It is the default shell on Debian OS.
Package Management
apt
is debian package management.
Debian maintains a list of links to repository that apt-
or apt-get
can download from. The list(s) is stored in a file /etc/apt/sources.list
, and in a directory containing the list files. These files are merged at runtime to form the complete list. Therefore, the content format of these files are exactly the same.
The benefits for allowing list of files in the sources.list.d
folder are: ease of configuration and automation. For example, to disable a repository that is listed on a file, you can just remove the file instead of manipulating the main list (i.e. sources.list
).
Also see:
[REF-4] How does apt-get really work?
/etc
/etc
is where a Linux system's configuration files live.
apt Repository list -
/etc/apt/sources.list /etc/apt/sources.list.d/*
File System Table -
/etc/fstab;
Note: Add entry in thefstab
file to persist mount point across reboot.Hosts -
/etc/hosts
rc.local -
/etc/rc.local
; for setting start-up program;Timezone -
/etc/timezone
;
Networking
The networking folder -
/proc/net/
$ ls -al /proc/net/
total 0
dr-xr-xr-x 66 gabe gabe 0 Dec 7 17:28 .
dr-xr-xr-x 9 gabe gabe 0 Dec 7 17:28 ..
-r--r--r-- 1 root root 0 Dec 7 17:28 anycast6
-r--r--r-- 1 root root 0 Dec 7 17:28 arp
-r--r----- 1 root root 0 Dec 7 17:28 arp_tables_matches
-r--r----- 1 root root 0 Dec 7 17:28 arp_tables_names
-r--r----- 1 root root 0 Dec 7 17:28 arp_tables_targets
dr-xr-xr-x 3 root root 0 Dec 7 17:28 bonding
[...]
For example, the host IP can be found in the file
fib_trie
How-to
Basic info
Admin
Setup Environment
Configure
Package Management
Services
TODO:
journalctl
;
Build-tool
Source: https://www.youtube.com/watch?v=9vsu67uMcko
Buildroot
OpenWrt
Yocto
Books
Google Drive > Books > Linux - https://drive.google.com/drive/folders/0B-bIAh9FWNPdcFNQSWtKM2ZhYzg?resourcekey=0-FlrlIakV5ZuQGdbI92OUPw&usp=sharing
LEARN - Linux - Ubuntu > SYNCH > Google Drive
References
[REF-1] The Linux Documentation Project; compilation of books, references, etc.; all free; MUST visit;
[REF-2] LinuxCommand.org
[REF-3] The Linux Command Line book download here
[REF-4] How does apt-get really work?
Last updated