Components in the Operating System
cat /etc/gemstone/config.txt
command runs.open()
syscall).chmod
& chown
rules)./sbin/init
, which is the parent of all other processes. In T3 Gemstone OS, this process is systemd
.
/
) is the topmost point
of the system, and all other directories branch from here.
/bin
and /usr/bin
directories contain basic programs. Commands like ls
, cp
, and mv
used daily are located
here./etc
is the central hub for system configuration files. Network settings, service configurations, and system-wide
settings are stored here./home
contains user folders. Your personal files and settings are located here./var
stores variable data files. Log files, databases, and temporary files created by processes reside here./dev
contains device files. Hardware components like I2C, SPI, UART, GPIO, and others on your Gemstone card are
represented as files here./sys
provides system information from the kernel. Hardware status, driver parameters, and system statistics are
found here./proc
provides information about running processes and the kernel. This virtual file system allows real-time
monitoring of system status.home
directories, they cannot modify system files, stop or start critical services, or make system-wide
changes. This restriction keeps the system secure and stable.
When working as a regular user on your Gemstone card, you can develop your projects, manage personal files, and run most
programs. However, you will need additional permissions for tasks like installing new software, managing system
services, or modifying system configuration files.
< >
characters are dummy (example) inputs and should be replaced with actual inputs
as needed.
q
to exit.
dialout
group can access
serial ports without root privileges.cd
into the directory.
You can use the chmod command in two ways: symbolic (with letters) and numeric (with numbers).
+
and -
signs to add or remove permissions, and the following symbols to specify user groups:
u
: Ownerg
: Groupo
: Othersa
: All4
: Read (r)2
: Write (w)1
: Execute (x)chmod 755 script.sh
means:
7
: 4 + 2 + 1 = rwx
(owner)5
: 4 + 1 = r-x
(group)5
: 4 + 1 = r-x
(others)chmod 777
!
This makes the file world-writable (rwxrwxrwx
) and poses a security risk.
^
prefix represents the Ctrl
key, and the M
prefix represents the Alt
key. For example, use ^O
(Ctrl+O
) to save the file, ^X
(Ctrl+X
) to
exit, and M-6
(Alt+6
) to copy text.
|
) symbol allows you to use the
output of one command as the input of another:
<
and >
characters are used for redirection and are not dummy inputs.F9
to terminate processes, F3
to search, and F4
to filter. For example, start filtering with
F4
, type “htop,” press F9
, select 15 SIGTERM
, and press Enter
to send a termination signal to the “htop”
process, closing the program.
systemctl list-units
command.
.service
file in the /etc/systemd/system/
directory.