Unix for Artists: Fun with FFMPEG is a workshop hosted by the Echo Park Film Center.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
unix4artists/bash/paths.sh

50 lines
801 B

#!/bin/bash -e
#####################################################
#
# The commands "cd",
#
# Usage: bash bash/paths.sh
#
#####################################################
THIS_DIRECTORY=`pwd`
echo "${THIS_DIRECTORY}"
sleep 2
# Go to your "home" directory for your user
cd ~/
echo "You are now in:"
pwd
sleep 2
# Go to the root of your filesystem
cd /
echo "You are now in:"
pwd
sleep 2
# List all files and directories in "long" and "readable" format
ls -lh
sleep 10
# Return to the directory you started in
cd "${THIS_DIRECTORY}"
echo "You are now back in:"
pwd
sleep 2
# Go into the "bash" sub-directory
cd bash
echo "You are now in:"
pwd
# Return to the parent directory, the one you started in,
# by using the double period ".." notation
cd ../
echo "You are now back in:"
pwd