如何删掉一个bash 别名?

## Claude responded: unalias name

`unalias name`

如果是写在 `~/.bashrc` 或 `~/.bash_aliases` 里的,还得去文件里删掉对应行,然后 `source ~/.bashrc`。

#unixtips (没错就这么简单的命令都会忘,因为一天到晚加别名,但很少删别名)

#unixtips

iso 写 Usb stick.

先确认 /dev/sda 是你的 U 盘,不是内置硬盘——这个命令会清空目标设备上所有数据。

`lsblk # 确认 /dev/sda 是 U 盘(看大小和挂载点)`

确认没问题后:

`sudo dd if=Rocky-8.10-x86_64-dvd.iso of=/dev/sda bs=4M status=progress oflag=sync`

`oflag=sync` 是确保每个数据块真正写完到物理设备上才继续,不留在系统缓冲区里。防止 dd 报告完成但实际还在后台写,你提前拔了 U 盘导致数据不完整。不加也能跑,加了更安全。

永久禁用IPv6优先,编辑 /etc/gai.conf,取消注释这行:

```
precedence ::ffff:0:0/96 100
```

让IPv4优先级高于IPv6。改完立即生效,不需要重启。
#unixtips

#unixtips 当你的.ssh目录下有多个不同格式的公钥时, ssh-copy-id 默认拷贝的不一定是你想要拷贝的公钥。保险起见,最好用 -i 参数指你想要拷贝的公钥。
```bash
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/default/<Alt>F1" -r
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Alt>F1" -r
```
xfce4 删除 Alt+F1 热键定义以避免与 Rider 热键冲突。
#unixtips
my default shell is bash and i don't have autocomplete set up. whenever i have to rename files which are too tedious to type, i switch to the fabulous fish shell to get autocomplete out of the box.

#unixtips #linuxtips

To escape a literal dollar sign in a ripgrep replacement string, use `$$`.

#unixtips

Three of my most favorite aliases:
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'

#UnixTips #Shell #Shortcuts #Aliases

#unixtips If you use gnome with Nautilus, which is the default File manager in gnome.
```
sudo apt install gnome-sushi
```
你就能像在macOS中那样按空格快速预览文件(图片、PDF、文本、音频、视频等)