caton the file
catprints the file to the terminal.
mv foo.txt foo.xyz
nanoopens the file without difficulty.
nanodoes not care about the extension.
caton the renamed file
catdoes not care about the extension.
pwdYou should be in the ex7 directory inside your ex directory of your it244 directory.
cd .... means the directory one level up.
pwdYou have moved up one level.
pwdYou are at the top of the filesystem.
lsNotice that the home and courses directories are subdirectories of the root directory.
pwdYour home directory is inside the directory named home, which is, itself, under the root directory, /.
statto get some information about the Linux host
stat -f /home
grepto learn the largest filename possible
stat -f /home | grep Namelen
touch 'hello there'If you did not put "hello there" in quotes, you would create 2 new files, hello and there.
lsIt looks like you have created two new files.
ls -lNow you can see that there is only one new file.
rm 'hello there'
lsYou only have one bar.txt file since you can only have one file with a given name in any one directory.
lsYou have two files since, as far as Unix is concerned, bar.txt and Bar.txt are totally different file names.
touch fOO.txt FOO.txt FOO.TXT
lsYou should see the files you just created since they have different capitalizations.
pwdIf not, see me.
bash ex7.sh > /dev/nullRunning ex7.sh this way will only print error messages.
~ghoffman/it244_test/ex07.shWhen the script asks if you are ready for more, hit Return or Enter.