Here’s a concise overview of the to
Here’s a concise overview of the to
- **Debian/Ubuntu**
```bash
sudo apt update
sudo apt install package_name
```
- **Soft Link (Symbolic Link)**: Points to the path of a file. Can span
filesystems. Can break if the target is deleted.
- **Hard Link**: Points to the inode of a file. Cannot span filesystems. Does not
break if the target is deleted.
1. **Check Service**: `sudo systemctl status sshd` or `sudo service ssh status`
2. **Check Port**: Ensure port 22 is open.
3. **Firewall**: `sudo iptables -L` or `sudo firewall-cmd --list-all`
4. **Logs**: Inspect `/var/log/auth.log` or `/var/log/secure`
5. **Configuration**: Check `/etc/ssh/sshd_config`
### Permissions
- **Sticky Bit**: Only the file owner can delete the file.
```bash
chmod +t file
```
- **SGID (Set Group ID)**: Files created in the directory inherit the group of the
directory.
```bash
chmod g+s directory
```
- **SUID (Set User ID)**: Executables run with the privileges of the file owner.
```bash
chmod u+s file
```
- **0**: Halt
- **1**: Single-user mode
- **2**: Multi-user, no network
- **3**: Multi-user, with network (text mode)
- **4**: Unused
- **5**: Multi-user, with GUI
- **6**: Reboot
### GRUB
- **GRUB (Grand Unified Bootloader)**: Bootloader used to load and manage multiple
operating systems.
### `/etc/resolv.conf`
- **Mount a Filesystem**:
```bash
sudo mount /dev/sdX1 /mount/point
```
**Example Entry**:
```
/dev/sdX1 /mount/point ext4 defaults 0 2
```
### Commands
- **SSD**: Solid State Drive, faster and more reliable than HDDs.
### IP Tables
- **Command**:
```bash
touch file_name
```
### ACL (Access Control Lists)
- **Set ACL**:
```bash
setfacl -m u:username:rw file
```
- **Create User**:
```bash
sudo useradd username
sudo passwd username
```
- **Create Group**:
```bash
sudo groupadd groupname
```
Feel free to ask if you need more details on any specific topic!