Removed mklink for git
This commit is contained in:
@ -1,15 +1,22 @@
|
||||
---
|
||||
type: "topic"
|
||||
created: "2024-01-29T05:19:01.392Z"
|
||||
updated: "2024-04-15T16:14:53.254Z"
|
||||
created: 2024-01-29T05:19:01.392Z
|
||||
type: topic
|
||||
updated: 2024-07-31T20:35:06.956Z
|
||||
---
|
||||
|
||||
# Ubuntu
|
||||
|
||||
- [Barcode Host](../.kanbn/tasks/barcode-host.md)
|
||||
- [Barcode Host](../.kanbn/archive/barcode-host.md)
|
||||
|
||||
```bash
|
||||
uname -a
|
||||
hostnamectl
|
||||
lsb_release -a
|
||||
cat /etc/issue
|
||||
cat /etc/os-release
|
||||
```
|
||||
|
||||
```bash
|
||||
sudo -l
|
||||
timedatectl set-timezone America/Phoenix
|
||||
find / -name "secrets.json" 2>/dev/null
|
||||
@ -33,6 +40,8 @@ df -h --total
|
||||
vgdisplay
|
||||
lvdisplay
|
||||
lsblk
|
||||
apt install smartmontools
|
||||
smartctl -i /dev/sda
|
||||
```
|
||||
|
||||
```bash
|
||||
@ -156,4 +165,29 @@ gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
|
||||
```bash
|
||||
# View package virtual IP per Peter Kim
|
||||
mviewcl
|
||||
```
|
||||
```
|
||||
|
||||
```bash
|
||||
apt list --installed
|
||||
lsof -i -P -n | grep LISTEN
|
||||
lsblk -I 8 -o NAME,SIZE,TYPE,FSUSED,FSUSE%
|
||||
(echo >/dev/tcp/localhost/22) &>/dev/null && echo "Open 22" || echo "Close 22"
|
||||
```
|
||||
|
||||
## Find symbolic links
|
||||
|
||||
- [how-to-list-all-symbolic-links-in-a-directory](https://askubuntu.com/questions/522051/how-to-list-all-symbolic-links-in-a-directory)
|
||||
|
||||
```bash Wed Jul 31 2024 11:19:12 GMT-0700 (Mountain Standard Time)
|
||||
find . -type l -ls
|
||||
```
|
||||
|
||||
## Save and Restore Permissions
|
||||
|
||||
- [is-it-possible-to-create-a-script-to-save-and-restore-permissions](https://stackoverflow.com/questions/3450250/is-it-possible-to-create-a-script-to-save-and-restore-permissions)
|
||||
|
||||
```bash Wed Jul 31 2024 13:25:41 GMT-0700 (Mountain Standard Time)
|
||||
getfacl -R yourDirectory > permissions.acl
|
||||
setfacl --restore=permissions.acl
|
||||
tree -ap>tree.txt
|
||||
```
|
||||
|
Reference in New Issue
Block a user