Skip to main content

Posts

Showing posts from March, 2023

find secrets

LPI E - Scripting 4.3 Where Data is Stored Finding The Data Here are just a few examples of the many parameters and switches that can be used with the " find " command to locate configuration files for Linux programs and binaries.   By understanding these basic parameters, a Linux learner can begin to effectively search for files and directories using the terminal.  👇👽💦 This command searches the "/etc" directory and all its subdirectories for files with the ".conf" extension. $ find /etc -name "*.conf" This will search for the file named "nginx.conf" starting in the "/etc/" directory. $ find /etc/ -name nginx.conf ... to find the configuration files for the Apache web server, you can use the following command $ find /etc -name "apache*" This command searches the "/usr" directory and all its subdirectories for files of type "f" (regular file) with the ".txt" extension...

LPI E - File Hierarch

LPI E - Scripting 4.3 Where Data is Stored Review of Topics: Various types of information stored on a Linux system Part 2 of 2:  Part 1 - A Detailed Look The Linux operating system is well-known for its structured and hierarchical file system. The system is organized in a way that makes it easy to find, organize, and access files by using specific directories.  In this blog post, we will explore the file structure of the Linux operating system and explain why files are stored in the specific directories and which directories are system versus user. Overview of the Linux File System The Linux file system is hierarchical, which means that it is arranged in a tree-like structure. At the top of the hierarchy is the root directory, represented by a forward slash (/). All other directories and files are located within this root directory. There are several directories in the Linux file system, and each directory has a specific purpose. For example,  the /bin directory contains...

less is more

LPI E - Scripting 4.3 Where Data is Stored Reading Files in Terminal Less is More The term "less is more" refers to the idea that the "less" command in Linux is more efficient and user-friendly than the "more" command, despite its seemingly simpler name. Both commands are used for viewing the contents of a file in the terminal, but "less" provides a more robust and interactive experience. For example, "less" allows the user to scroll through a file both forwards and backwards, search for specific text, and display line numbers . On the other hand, the "more" command is more limited in its functionality and can only scroll forward through a file, one screen at a time. This is why many Linux users prefer to use "less" over "more" when viewing files in the terminal. Despite its simpler name, "less" provides more capabilities and flexibility for users. Here are some examples of how to use the less com...

LPI E - System Data

LPI E - Scripting 4.3 Where Data is Stored Review of Topics: Various types of information stored on a Linux system Part 1 of 2:  Part 2 - A Extensive Look Programs Configuration Processes Memory addresses System messaging Logging  Using the tools ps top free syslog - Debian or Fedora dmesg - Debian or Fedora and by locating information from directories like  "/etc/" "/bin" "/var/log/" Debian or Fedora "/boot/" "/proc/" "/dev/" "/sys/" I'll also provide a reference to some other tools at the end Finding information about Linux Programs and Configuration : Programs in Linux are typically stored in directories like "/bin/" "/sbin/" "/usr/bin/" "/usr/sbin/ "bin" meaning the executable binaries   To locate information about a program , you can use the " which " command followed by the name of the program $ which ls T his will display the full path to the program...