cd
cd it244
cd ex
mkdir ex7
cd ex7
nano foo.txt
cat on the filecat foo.txt
cat prints the file to the terminal.
mv foo.txt foo.xyz
nanonano foo.xyz
nano opens the file without difficulty.
nano does not care about the extension.
cat on the renamed filecat foo.xyz
cat does 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.
cd /
pwdYou are at the top of the filesystem.
lsNotice that the home and courses directories are subdirectories of the root directory.
cd
pwdYour home directory is inside the directory named home, which is, itself, under the root directory, /.
cd it244/ex/ex7
pwd
stat to get some information about the Linux hoststat -f /home
stat with grep to learn the largest filename possiblestat -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'
ls
touch bar.txt
ls
touch bar.txt
lsYou only have one bar.txt file since you can only have one file with a given name in any one directory.
touch Bar.txt
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.
rm *.txt
cd ~/it244/ex/ex7
pwdIf not, see me.
nano ex7.sh
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.