Using Commands
Using the cd, pwd, ls, mkdir, and cp Commands
Now that we have covered some of these commands in an "isolated" fashion, let's put some of the commands together.
Let's start by viewing the hierarchy of a directory under denise's home directory, called krsort.dir.old, as shown in Figure 21-7:
$ cd /home/denise/krsort.dir.old $ pwd /home/denise/krsort.dir.old $ ls -l total 168 -rwxr-xr-x 1 denise users 34592 Oct 27 18:20 krsort -rwxr-xr-x 1 denise users 3234 Oct 27 17:30 krsort.c -rwxr-xr-x 1 denise users 32756 Oct 27 17:30 krsort.dos -rw-r--r-- 1 denise users 9922 Oct 27 17:30 krsort.q -rwxr-xr-x 1 denise users 3085 Oct 27 17:30 krsortorig.c $
Figure 21-7. /home/denise/krsort.dir.old
We can then make a new directory called krsort.dir.new ...
Get HP-UX 11i System Administration Handbook and Toolkit, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.