Table of Contents

Summary of "Cert Prep: LPI Linux Essentials (010-160)"

https://www.linkedin.com/learning/cert-prep-lpi-linux-essentials-010-160/

General

CLI

miro.medium.com_max_1174_1_hsizugggbk8-vrdfvp3ujw.jpeg

Piping

https://linuxhint.com/linux_pipe_command/

https://ryanstutorials.net/linuxtutorial/piping.php

https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_07

Every single program in the UNIX/Linux system has 3 built-in data streams.

pipe redirection (|): send data from a program to another. file redirection (>): sends or gets data to/from a file

https://stackoverflow.com/a/40319372/1034806

-command > output is just a shortcut for command 1> output

Scripts

#! (is a script) /... (program executed)

#!/bin/bash
#!/bin/bash
 
# variables:
# $ip=....
 
# conditional expressions
# if [ -s filename ]
 
filename=$1  
if  [  -f  "$filename"  ]; then  
echo  "File exists"  
else  
echo  "File does not exist"  
fi

execute it:

./asdfasdf.sh

Processes

https://www.tecmint.com/linux-process-management/

Networking

www.homenethowto.com_wp-content_uploads_dns-via-home-router2.jpg

Programs

Security

  1. shut down servers
  2. enable a firewall
  3. use good passwords
  4. keep sw up to date

User accounts and groups

/etc/passwd

whoami

id

adduser

useradd

usermod and groupmod to manage users and groups

who: who is logged in the system

var/log/auth.log : all info about users

Ownerships and permissions

permissions for user, group and others

chown

chgrp

umask

sticky bit

suid

sgid