Page cover

Linux

open-source operation system

Why Linux?

  • Ansible do not run on Windows

  • Kubernete do not plan to run on Windows

Distro

KALI LINUX ™, Ubuntu, and Parrot all come from Debian.

CentOS comes from Red Hat.

Shell

The shell is the command-line interpreter.

Type of shell:

  • Bourne-Again Shell (bash)

  • C Shell (csh)

  • Korn Shell (ksh)

  • Enhanced C shell (tcsh)

  • Z Shell (zsh)

circle-info

ksh and bash use the dollar sign ($) to indicate where users type in their commands. Other shells, such as zsh, use the percent sign (%) for this purpose.

// or to check which type of shell, using

echo $SHELL

CLI

chevron-rightBasic commandshashtag
chevron-rightpipehashtag
chevron-rightcurlhashtag
chevron-rightVi editorhashtag

Command mode & Insert mode. When open a VI editor, the default mode is COMMAND MODE.

open VI editor

switch to INSERT mode

  • using i key to enter insert mode.

  • using esc key to return to command mode.

there are 2 ways

  • using arrow keys

  • using K (up) -J (down) -H (left) -L (right)

find stuff

copy, paste, delete

save, quit

do not save, quit

Esc > :q!

chevron-rightUser accountshashtag
chevron-rightDownload fileshashtag
chevron-rightTipshashtag

check OS version

check details of OS version

SSH

chevron-rightConnectinghashtag
chevron-rightpinghashtag

command to send network ICMP (Internet Control Message Protocol) echo requests to a specific IP address.

Package manager

A package manager is a tool that helps users install, manage, and remove packages or applications. Linux uses multiple package managers.

.rpm

chevron-rightRPM (Redhat Package Manager) - Redhathashtag
chevron-rightYUM (Yellowdog Updater Modified) - CentOShashtag

.deb

chevron-rightdpkg - Debibanhashtag

chevron-rightAPT (Advanced Package Tool) - Ubuntu/Debianhashtag

APT is a tool used with Debian-derived distributions.

Services

[app].service

Last updated