ringland@luthor(59-2:22pm)> bash [ringland@luthor day3]$ ps PID TTY TIME CMD 19453 pts/0 00:00:00 tcsh 19583 pts/0 00:00:00 bash 25854 pts/0 00:00:00 ps [ringland@luthor ~]$ mkdir day3 [ringland@luthor ~]$ cd day3 [ringland@luthor day3]$ pwd /nsm/home/ringland/day3 [ringland@luthor day3]$ cd .. [ringland@luthor ~]$ pwd /nsm/home/ringland [ringland@luthor ~]$ cd day3 [ringland@luthor day3]$ mkdir part1 [ringland@luthor day3]$ pwd /nsm/home/ringland/day3 [ringland@luthor day3]$ ls part1 [ringland@luthor day3]$ ls -l total 1 drwxr-xr-x 2 ringland mthfac 512 Jan 22 14:24 part1 [ringland@luthor day3]$ cat > foo.txt Hello, there. Hi. [ringland@luthor day3]$ cat foo.txt Hello, there. Hi. [ringland@luthor day3]$ ls -l total 2 -rw-r--r-- 1 ringland mthfac 18 Jan 22 14:25 foo.txt drwxr-xr-x 2 ringland mthfac 512 Jan 22 14:24 part1 [ringland@luthor day3]$ ls -g total 2 -rw-r--r-- 1 mthfac 18 Jan 22 14:25 foo.txt drwxr-xr-x 2 mthfac 512 Jan 22 14:24 part1 [ringland@luthor day3]$ ls -G foo.txt part1 [ringland@luthor day3]$ ls -lG total 2 -rw-r--r-- 1 ringland 18 Jan 22 14:25 foo.txt drwxr-xr-x 2 ringland 512 Jan 22 14:24 part1 [ringland@luthor day3]$ ls -gG total 2 -rw-r--r-- 1 18 Jan 22 14:25 foo.txt drwxr-xr-x 2 512 Jan 22 14:24 part1 [ringland@luthor day3]$ cp foo.txt foocopy.txt [ringland@luthor day3]$ ls -gGt [ t means reverse chronological order ] total 3 -rw-r--r-- 1 18 Jan 22 14:27 foocopy.txt -rw-r--r-- 1 18 Jan 22 14:25 foo.txt drwxr-xr-x 2 512 Jan 22 14:24 part1 [ringland@luthor day3]$ cat foocopy.txt Hello, there. Hi. [ringland@luthor day3]$ diff foo.txt foocopy.txt [ringland@luthor day3]$ ls -l ~/Trash -rw------- 1 ringland mthfac 104242105 Jan 22 10:03 /nsm/home/ringland/Trash [ringland@luthor day3]$ ls -lh ~/Trash -rw------- 1 ringland mthfac 100M Jan 22 10:03 /nsm/home/ringland/Trash [ringland@luthor day3]$ [ringland@luthor day3]$ mv foo.txt bar.txt [ringland@luthor day3]$ ls bar.txt foocopy.txt part1 [ringland@luthor day3]$ mv bar.txt part1 [ringland@luthor day3]$ ls foocopy.txt part1 [ringland@luthor day3]$ cd part1 [ringland@luthor part1]$ ls bar.txt [ringland@luthor part1]$ mv bar.txt .. [ringland@luthor part1]$ ls [ringland@luthor part1]$ cd .. [ringland@luthor day3]$ ls bar.txt foocopy.txt part1 [ringland@luthor day3]$ rm bar.txt [ringland@luthor day3]$ ls foocopy.txt part1 [ringland@luthor day3]$ alias rm="rm -i" [ringland@luthor day3]$ rm foocopy.txt rm: remove regular file `foocopy.txt'? n [ringland@luthor day3]$ ls foocopy.txt part1 [ringland@luthor day3]$ cd [ringland@luthor ~]$ pwd /nsm/home/ringland [ringland@luthor ~]$ gedit .bashrc & [1] 26114 [ put aliases into this file as desired ] [ringland@luthor ~]$ cat .bashrc # .bashrc # User specific aliases and functions for linux.nsm.buffalo.edu alias lm="ls -gt |more" alias lh="ls -gt |head" alias np="/home/ringland/src/np/gnp" alias rm="rm -i" alias mv="mv -i" alias cp="cp -i" alias ki="kedit index.html &" alias k="kedit" alias g="gedit" alias maple="/eng/tools/maple11/bin/maple" alias xmaple="/eng/tools/maple11/bin/xmaple &" alias xmaplecw="/eng/tools/maple11/bin/maple &" # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi [ringland@luthor ~]$ exit exit ringland@luthor(60-3:31pm)> exit logout Connection to linux.nsm.buffalo.edu closed. [ringland@orange 337]$