> For the complete documentation index, see [llms.txt](https://bing.gitbook.io/phper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bing.gitbook.io/phper/notes/linux/hui-shou-zhan.md).

# 回收站

```
alias rm='trash'
alias rl='trashlist'
alias ur='undelfile'
```

```shell
trash()
{
   mv $@  ~/.trash/
}


trashlist()
{
   ls -al  ~/.trash
}

undelfile()
{
   mv -i ~/.trash/$@ ./
}


cleartrash()
{
    read "CONF?确定要删除吗? "
    if [ "$CONF" = "y" ]; then
      /bin/rm -rf ~/.trash/*;
      echo "success";
    else
      echo "exit";
    fi
}
```
