• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
jacklee404
Never Stop!
博客园    首页    新随笔    联系   管理    订阅  订阅

Hw01-The Shell

Hw-01 The Shell

Create new directory in tmp called missing

mkdir -p /tmp/missing

Look up touch command by man.

image-20220630075358607

Look up chmod program

image-20220630080056679

The user doesn't have any permission to execute, so we should chmod the permission.

chmod u+x ./semester

Then we should use sh to exec the file

sh ./semsester

Use | and > to write the “last modified” date output by semester into a file called last-modified.txt in your home directory.

cat ./semsester | grep last-modifiled > ~/last-modified.txt
posted on 2022-06-30 08:13  Jack404  阅读(5)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3