cd
cd it244
cd ex
mkdir ex8
cd ex8
cd
pwd
ls -a
These files configure various settings in your Unix environment.
cd /home/tsoro
ls -a
cat .bash_profile
This file runs other files that customize my Unix environment.
cat .profile.d/local/local_profile.sh
What you see here will not mean much to you now.
cd /home/tsoro/course_files/it244_files
You can use this pathname anywhere in the filesystem and will always
refer to the same directory.
pwd
Notice that pwd always returns the absolute pathname of your current directory.
cd /home/tsoro
pwd
cd ~
pwd
You should be in /home/YOUR_UNIX_ID
cd ~tsoro
pwd
You should be in /home/tsoro
cd ~/it244
pwd
You should be in /home/YOUR_UNIX_ID/it244.
cd ~/it244/ex/ex8
ls -a
Notice that you have a . and a ..entry.
touch foo.txt
mkdir test
cd test
pwd
ls ..
cp ../foo.txt .
You use . to specify the current directory
and .. to specify the parent directory.
ls
pwd
rm *
cd ..
rmdir test
cd ~tsoro/course_files/it244_files
pwd
ls
cat fruit.txt
Since fruit.txt is in your new current directory, its pathname
is simply the filename.
ls
ls dir1
ls dir1/dir2
cat dir1/dir2/foo.txt
cd dir1/dir2
pwd
ls ../../
ls ../../../../../..
ls ../../../..
ls ../../../../public_html/it244_html/class_notes_it244
tail ../../../../public_html/it244_html/class_notes_it244/class_notes_index_it244.html
cd ~/it244/ex/ex8
pwd
nano ex8.sh
bash ex8.sh > /dev/null
Running ex8.sh this way
will only print error messages.
~tsoro/it244_test/ex08.sh
When the script asks if you are ready for more, hit Return or Enter.