SystemAdministration

Generate a list of installed packages

Price range: €15.31 through €16.22

. Debian-Based Systems (e.g., Ubuntu, Debian):
Use the dpkg command:

bash
dpkg --get-selections
  • Description: Lists all installed packages.
  • Optional: Pipe the output to grep to filter results, e.g., dpkg --get-selections | grep package-name.

Alternatively, use the apt command:

bash
apt list --installed
  • Description: Displays a list of installed packages with version information.

2. Red Hat-Based Systems (e.g., CentOS, Fedora, RHEL):
Use the rpm command:

bash
rpm -qa
  • Description: Lists all installed packages.

Alternatively, use the dnf or yum package managers:

bash
dnf list installed

or

bash
yum list installed
  • Description: Outputs installed packages with version and repository details.

3. Arch-Based Systems (e.g., Arch Linux, Manjaro):
Use the pacman command:

bash
pacman -Q
  • Description: Lists all installed packages with their version numbers.

4. SUSE-Based Systems (e.g., openSUSE):
Use the zypper command:

bash
zypper se --installed-only
  • Description: Lists installed packages along with their version details.

5. Generic Package Manager (Flatpak):
If you are using Flatpak, list installed packages with:

bash
flatpak list

Tips for Usage

  • Redirect output to a file for analysis:
    bash
    dpkg --get-selections > installed_packages.txt
  • Combine with grep for targeted searches:
    bash
    rpm -qa | grep package-name
Select options This product has multiple variants. The options may be chosen on the product page

Write basic Linux commands

Price range: €12.32 through €16.22

10 Basic Linux Commands for Beginners

  1. ls
    • Description: Lists the contents of a directory.
    • Example: ls shows files and folders in the current directory. Use ls -l for detailed information or ls -a to include hidden files.
  2. pwd
    • Description: Prints the current working directory.
    • Example: pwd displays the absolute path of the directory you are in.
  3. cd
    • Description: Changes the current directory.
    • Example: cd /home/user/Documents navigates to the Documents folder. Use cd .. to move up one directory.
  4. mkdir
    • Description: Creates a new directory.
    • Example: mkdir project creates a directory named “project” in the current location.
  5. rm
    • Description: Removes files or directories.
    • Example: rm file.txt deletes the file “file.txt.” Use rm -r folder to remove a directory and its contents recursively.
  6. cp
    • Description: Copies files or directories.
    • Example: cp file1.txt file2.txt copies “file1.txt” to “file2.txt.” Use cp -r source_folder target_folder to copy directories.
  7. mv
    • Description: Moves or renames files and directories.
    • Example: mv file.txt /home/user/Documents moves “file.txt” to the Documents folder. mv oldname.txt newname.txt renames the file.
  8. touch
    • Description: Creates an empty file or updates the timestamp of an existing file.
    • Example: touch newfile.txt creates an empty file named “newfile.txt.”
  9. cat
    • Description: Displays the contents of a file.
    • Example: cat file.txt outputs the content of “file.txt” to the terminal.
  10. man
    • Description: Displays the manual (help) pages for a command.
    • Example: man ls provides detailed information and options for the ls command.

Tips for Beginners:

  • Use --help after any command (e.g., ls --help) for a brief overview of options and usage.
  • Use Tab for auto-completion and Ctrl + C to cancel running commands.
Select options This product has multiple variants. The options may be chosen on the product page