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)

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

Basic commands

the ./

mkdir

rm

mv

cat

less

grep

apropos

history

pipe
curl
Vi editor

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!

User accounts
Download files
Tips

check OS version

check details of OS version

SSH

Connecting
ping

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

RPM (Redhat Package Manager) - Redhat
YUM (Yellowdog Updater Modified) - CentOS

.deb

dpkg - Debiban

APT (Advanced Package Tool) - Ubuntu/Debian

APT is a tool used with Debian-derived distributions.

Services

[app].service

Last updated