Linux脚本开始

    学校学的linux, 到了工作才会用上. 幸好之前给书判决去留时,将上课的linux保留下来,让其进行空间维度的移动. 开始复习,不然一条条的敲shell 命令, 太累了. 写bash脚本:

1. 写吧!

vim showinfo

#!/bin/bash

echo -n "Date and time is:"
date
echo -n "Your Current directory is: "
pwd

2. 跑吧

(1) tcsh showino

(2) chmod a+x showinfo

                                       

你可能感兴趣的:(shell)