Skip to main content

Posts

Showing posts with the label Tips

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...

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...