also, you don’t manually move stuff around in /usr. if you want to manually install something or create directories, it goes in /home/<username>/<whatever folder>. Here’s a chatGPT response for what the base directories are typically for:
In Linux, the file system is organized into a series of directories, each with a specific purpose. Here’s a summary of the main Linux base directories and their typical purposes:
-
/ (Root Directory)
The top-level directory of the file system, from which all other directories branch. It contains all other files and directories.
-
/bin (Binary Executables)
Stores essential user command binaries that are needed for the system to operate in single-user mode (e.g., basic commands like ls, cat, cp, etc.).
-
/boot (Boot Files)
Contains files necessary for the boot process, including the Linux kernel (vmlinuz), initial RAM disk (initrd or initramfs), and bootloader configuration files (e.g., GRUB).
-
/dev (Device Files)
Holds device files that represent hardware devices (e.g., hard drives, printers, terminals) as files, allowing for device I/O. These files provide a way for programs to communicate with hardware.
-
/etc (Configuration Files)
Contains all system-wide configuration files and shell scripts used to start or manage programs and services (e.g., /etc/passwd for user accounts, /etc/fstab for mounting filesystems).
-
/home (User Home Directories)
Each user’s personal directory where they can store their files, configuration settings, and data. For example, /home/john would be John’s home directory.
-
/lib (Shared Libraries)
Contains shared libraries (similar to DLLs on Windows) needed by binaries in /bin and /sbin. These libraries contain code shared by multiple programs.
-
/media (Removable Media Mount Points)
Used to mount removable media like USB drives, CDs, or DVDs. For example, /media/usb may contain the files of a connected USB drive.
-
/mnt (Temporary Mount Points)
Typically used for temporarily mounting filesystems, such as external drives, or networked filesystems, often manually by the system administrator.
-
/opt (Optional Software)
Contains additional software packages or optional applications that are not included in the default installation. This is often used for proprietary or large third-party software.
-
/proc (Process Information)
A virtual filesystem providing access to kernel and process information. It contains directories for each running process (e.g., /proc/1234 for process ID 1234) and information about system resources.
-
/root (Root User Home Directory)
The home directory of the root (superuser) account, separate from /home to emphasize the special nature of the root account.
-
/run (Runtime Data)
Contains runtime information (e.g., process IDs, sockets, and other volatile data) that is typically cleared at boot. It stores data used for system management and communication between running services.
-
/sbin (System Binaries)
Holds system administration binaries that are essential for booting, restoring, and recovering the system (e.g., ifconfig, iptables, fsck). These commands usually require superuser (root) privileges to execute.
-
/srv (Service Data)
Contains data served by the system’s services, such as web or FTP server data. It is intended to store the actual content being served by services running on the system.
-
/tmp (Temporary Files)
A directory for temporary files that are created and used by programs and processes. Files here are usually cleared upon reboot, making it a transient storage space.
-
/usr (User System Resources)
One of the largest directories, it holds the majority of user utilities and applications. It contains subdirectories like: /usr/bin: non-essential user commands. /usr/sbin: non-essential system binaries. /usr/lib: libraries for programs in /usr/bin and /usr/sbin. /usr/local: for software installed locally (i.e., by the system administrator), separate from the distribution-provided software.
-
/var (Variable Data)
Stores variable (changing) files such as logs, mail, and databases. Some important subdirectories include: /var/log: log files. /var/tmp: temporary files that persist between reboots. /var/www: web server files.
These directories organize the operating system, making it easier for users and programs to find what they need.
Well that’s annoying.
Also don’t get used to using su like that, it puts you in an interactive root session. Sudo does the same but only for the command you are running. Safer to uze sudo on aper command basis to prevent accidentally making bad changes to your system. Sometimes su is needed but not usually.
Do 'sudo pacman -S --needed git base-devel yay ', let that run, then 'yay -S octopi ’
That will install the yay package manager, then uses yay to install stall octopi. Just co firmed on an Endeavor OS vm.