1. Home
  2. Work Journal
  3. Cybersecurity & Linux
  4. Skills & lessons

$ cd cybersecurity-linux/skills-lessons

Skills & lessons

What I learned and what came out of it.

Current level: Learning

$ cat skills.txt

What I am learning

Linux commands

Working in the terminal.

IP addresses

How devices are found on a network.

HTTP & HTTPS

How the web sends data, and how it is protected.

Protocols

The rules that computers use to talk.

Real-world problems

Everyday security problems and what helps.

$ man linux

Linux commands

A quick reference of basic commands for working in the terminal.

user@linux:~
$ pwd                  # show the current folder
$ ls -l                # list files with details
$ cd Documents         # move into a folder
$ mkdir notes          # create a folder
$ cat file.txt         # show the contents of a file
$ grep "word" file.txt # search for text in a file
$ chmod +x script.sh   # allow a file to be run
$ sudo apt update       # run as administrator (Debian / Ubuntu)
$ ip a                 # show IP addresses
$ ping example.com     # test a connection

$ ip a

Networking notes

How IP addresses work

  • Every device on a network needs an IP address so data knows where to go.
  • IPv4 looks like 192.168.1.10 (four numbers from 0 to 255). IPv6 is longer and gives many more addresses.
  • Private addresses (such as 192.168.x.x and 10.x.x.x) are used inside home and office networks. A public address identifies the network on the internet.
  • DHCP gives devices an address automatically. DNS turns a name like example.com into an IP address.

HTTP and HTTPS

  • HTTP is how browsers ask web servers for pages (port 80). The data is sent as plain text.
  • HTTPS is HTTP protected with TLS (port 443). The data is encrypted and the site's certificate helps prove who it is.
  • On plain HTTP, someone on the same network could read or change what you send. HTTPS makes that much harder.

$ cat protocols.txt

Different protocols

ProtocolWhat it does
TCPReliable, ordered delivery of data. Used by the web and email.
UDPFast delivery without a guarantee. Used for video calls and DNS queries.
DNSTurns names into IP addresses (port 53).
DHCPGives devices an IP address automatically.
HTTP / HTTPSThe web (ports 80 and 443). HTTPS is the encrypted version.
SSHSecure remote login to another computer (port 22).
FTPFile transfer (port 21). It is not encrypted, so SFTP is the safer choice.
ICMPUsed by ping to test whether a device can be reached.

$ cat problems.txt

Real-world problems

Phishing messages

Fake emails and messages try to trick people into giving passwords or clicking bad links. What helps: check the sender and the link before clicking, and turn on two-step login.

Weak or reused passwords

One leaked password can open many accounts. What helps: long, unique passwords, ideally kept in a password manager.

Outdated software

Old software can have known security holes. What helps: installing updates regularly, for example with sudo apt update and sudo apt upgrade on Debian or Ubuntu.

Unsafe public Wi-Fi and plain HTTP sites

Other people on the same network may be able to watch traffic that is not encrypted. What helps: use HTTPS sites, and avoid logging in to important accounts on open Wi-Fi.