Skip to main content

Posts

Showing posts with the label grep

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

LPI E - Archiving

LPI E - Archiving 3.1 Review 3.1 Archiving Files on the Command Line      In this blog, we will discuss how Linux uses compression for files, directories, archives using tar, and other compression tools like gzip, bzip2, xz, zip, and unzip.          One of the unique features of Linux is its ability to compress and decompress files and directories to reduce their size. This feature is particularly useful when transferring or archiving large files, saving disk space, and improving system performance. Tar      Tar is an acronym for Tape Archive, and it is a command-line tool used for archiving files and directories. It allows you to ... create list extract compress      ... files in a single operation. The tar command is used to create a tar archive by grouping multiple files or directories into a single file. The syntax for creating an archive is as follows:     $ tar -cvf archive.tar file1 fi...