# linux_study **Repository Path**: gengyazhao/linux_study ## Basic Information - **Project Name**: linux_study - **Description**: linux学习与linux基础知识题库 - **Primary Language**: Shell - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-06-11 - **Last Updated**: 2022-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #!/bin/bash # 清除, 版本 3 ROOT_UID=0 # $UID 为0 的时候,用户才具有根用户的权限 LINES=50 # 默认的保存行数 E_XCD=66 # 不能修改目录? E_NOTROOT=67 # 非根用户将以error 退出 if [ "$UID" -ne "$ROOT_UID" ] then echo "Must be root to run this script." exit $E_NOTROOT fi