Wednesday, December 14, 2022

Linux - BaseOS

The following is a Linux dictionary word of the day:

baseos – foundation for an installation which provides the core set of the underlying operating system functionality.

The baseos is a fundamental component in many Linux distributions.

Core Functionality: The baseos repository includes packages which are critical for basic operation of the system. This includes: kernel, system libraries, and essential utilities.

Linux - Base64

The following is a Linux dictionary word of the day:
base64 base64 utilized to encode/decode data and print it to standard output.
-d parameter is used to decode data.
-i parameter is used when decoding to ignore non-alphabet characters.
-w used to wrap encoded lines Utilize 0 to disable line wrapping (example: -w0).

Example: base64 testfile.txt > testencode.txt

Linux - Base32

The following is a Linux dictionary word of the day:
base32 base32 utilized to encode/decode data and then print it to standard output.
-d parameter is used to decode data
-i parameter is used when decoding to ignore non-alphabet characters
-w used to wrap encoded lines Utilize 0 to disable line wrapping (example: -w0)

Example: base32 testfile.txt > testencode.txt

Linux - Basename

The following is a Linux dictionary word of the day:
basename strip directory and suffix from filenames.
Example: basename /usr/local/bin/


Linux - Awk

The following is a Linux dictionary word of the day:

awk used for pattern matching, text processing and reporting.

The name Awk is derived from the last name initials of its designers: Alfred V. Aho, Peter J. Weinberger, and Brian W. Kernighan. The first version of Awk was written in 1977.

The syntax of awk is as such:
awk options 'selection_criteria { action }' input-file > output-file

Example: Using awk to show how to extract column 5 (the file size) from the output of ls -l.
ls –l | awk ‘{print $5}’

Note: notice that the output of the awk ‘{print $5}’ is the fifth column of the ls -l command
as shown for reference.
print is the command to print out output.
print $5 means print the fifth column.


Linux - Aspell

The following is a Linux dictionary word of the day:
aspell  spell checker which checks for misspellings and allows for changes to be made.
check – argument to spell check a single file.
Example: aspell check my_file.txt

Linux - Ar

The following is a Linux dictionary word of the day:
ar – utilized to create, modify, and extract files from an archive.
-r parameter for creating an archive file.
Example: ar r archive_file_name.a *.txt