public:linuxpermition
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| public:linuxpermition [2023/07/25 20:18] – created lukas | public:linuxpermition [2026/10/24 08:01] (current) – lukas | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | You could also do chown -R username: | + | You could also do |
| + | < | ||
| + | chown -R username: | ||
| + | </ | ||
| + | , which would change the permissions on the current directory, and then recurse down inside of it and all subfolders to change the permissions. | ||
| + | |||
| + | < | ||
| + | chmod -R 666 /var/www | ||
| + | </ | ||
| + | will give read, write permissions for everyone. | ||
| + | |||
| + | Partitions: | ||
| + | < | ||
| + | lsblk -f | ||
| + | </ | ||
| + | or: | ||
| + | < | ||
| + | # file -sL /dev/sd* | ||
| + | </ | ||
| + | result: | ||
| + | < | ||
| + | /dev/sda1: Linux rev 1.0 ext4 filesystem data, UUID=63fa0104-4aab-4dc8-a50d-e2c1bf0fb188 (extents) (large files) (huge files) | ||
| + | /dev/sdb1: Linux rev 1.0 ext2 filesystem data, UUID=b3c82023-78e1-4ad4-b6e0-62355b272166 | ||
| + | /dev/sdb2: Linux/i386 swap file (new style), version 1 (4K pages), size 4194303 pages, no label, UUID=3f64308c-19db-4da5-a9a0-db4d7defb80f | ||
| + | </ | ||
| + | Check ext2 ,ext3, ext4 partition: | ||
| + | < | ||
| + | sudo umount /dev/sdXN | ||
| + | sudo e2fsck -f -n /dev/sdXN | ||
| + | </ | ||
| + | -n reports issues without making changes. If you want e2fsck to repair errors interactively, | ||
| + | < | ||
| + | sudo e2fsck -f /dev/sdXN | ||
| + | </ | ||
| + | |||
| + | Pack: | ||
| + | < | ||
| + | tar czf name_of_archive_file.tar.gz name_of_directory_to_tar | ||
| + | </ | ||
| + | |||
| + | Unpack: | ||
| + | < | ||
| + | tar -xzvf file.tar.gz | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | < | ||
| + | scp [OPTION] [user@]SRC_HOST: | ||
| + | </ | ||
| + | |||
| + | Rsync to NTFS filesystem (rsync have to be installed on boths machines) | ||
| + | < | ||
| + | rsync -rtv --modify-window=1 [user@]SRC_HOST: | ||
| + | </ | ||
| + | |||
| + | Password less SSH | ||
| + | http:// | ||
| + | < | ||
| + | cat .ssh/ | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | < | ||
| + | sudo nmap -sn 192.168.0.0/ | ||
| + | </ | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Add PPA Debian: | ||
| + | < | ||
| + | sudo apt -y install software-properties-common python3-launchpadlib | ||
| + | </ | ||
| + | |||
| + | Hex Editors for Linux | ||
| + | < | ||
| + | sudo apt install hexedit | ||
| + | </ | ||
public/linuxpermition.1690316326.txt.gz · Last modified: by lukas
