Professional Documents
Culture Documents
UNIX WK 6
UNIX WK 6
UNIX WK 6
#!/bin/bash - she-bang
which bash - /bin/bash
which perl - /usr/bin/perl
.. parent directory
pwd
/home/u301263435/work
cd ../../../
pwd output: /
. current directory
./sctipt - ./ -means look up the file in the current directory
u301263435@s301263435:~/work$ ./script.sh
Hello world