ls .bash*Unless you have created .bashrc or .bash_profile, you should see only .bash_history.
ex=~/it244/exThere must not be any spaces on either side of the =.
echoprints a blank line, because .bash_profile ran when you first logged in.
nano .bashrcNotice that this is a different file than .bash_profile.
PS1='--> 'Again, there must be no spaces on either side of the =.
bashNotice that your prompt has changed.
bashprocess is your login shell.
exitNotice that your prompt now has returned to normal.
psYou have only one
which lsYou get an absolute pathname, so
lsis not a built-in.
catis also not a built-in.
whichreturns nothing because
bgis a built-in command.
fgis also a built-in command.
~ghoffman/course_files/it244_files/make_foo.shThis script will create some files that you will use in the remainder of this exercise.
ls -l f*You only have to enter as many characters as are needed to distinguish the files you want from the files you don't want.
ls -l foo1*.txt
ls -l f*2*You can use multiple instances of metacharacters.
ls -l foo?.txtNotice that foo.txt and the files foo10.txt through foo29.txt do not appear in the listing.
ls -l foo2?.txtNotice that you only print the files foo20.txt to foo29.txt
ls -l foo??.txtNotice that you now you see the files foo10.txt to foo29.txt
ls -l foo.txt
ls -l foo[1-5].txt
ls -l foo[1-46-9].txt
ls -l foo[!05].txt
ls -l foo1.txt
ls -l foo1[6-9].txt
ls -l foo2[1-46-9].txt
ls -l foo2[!50].txt
ls -l foo.*
ls -l f??.txt
ls -l f??.*
chmod 755 ex16.sh
./ex16.sh > /dev/nullRunning ex16.sh this way will only print error messages.
~ghoffman/it244_test/ex16.shWhen the script asks if you are ready for more, hit Return or Enter.