|
|
Checkout San Francisco 49ers Jacket, New England Patriots Jacket, Houston Texans Jacket and Nascar Jackets
at discount prices.
If you are a football fan checkout NFL Jackets.
If you are looking for Soccer Jackets from Italy, Germany, England, Argentina and Brasil, checkout Soccer Jackets.
|
|
Command Description |
DOS Command |
Unix Equivalent Command |
Description |
Directory contents |
dir
dir/p
dir/w
|
ls -l
ls -l | more
ls
ls -ltr |
(Sort by date) |
To list a file |
type abc.txt |
cat abc.txt
more abc.txt |
(Will pause after every page, then you press a key and it will go to next
page, will keep pausing after every page) |
Change dir |
cd bin cd bin\tmp |
cd bin cd bin/tmp |
(Difference is forward slash and back slash) |
Find a file |
dir/s abc.txt |
find . -name abc.txt
find .. -name abc.txt
find / -name abc.txt
find /home/bambi -name abc.txt
|
Where '.' is the current directory
To start search from parent dir
To start the search from root dir
To start search from /home/bambi dir
|
Search word in a file |
|
grep jack abc.txt
grep -i jack abc.txt
grep jack *.txt |
Search for word 'jack' in abc.txt
Search for word 'jack' in abc.txt but ignore case
Search for jack in all files ending with .txt in current directory |
Current dir |
cd |
pwd |
|
Create Dir |
mkdir tmp |
mkdir tmp |
|
Delete File |
del abc.txt |
rm abc.txt
rm -i abc.txt |
Files cannot be undeleted on Unix unless you are a Jedi, so be careful.
To prompt y/n before deleting a file. |
Remove Dir |
rmdir tmp |
rmdir tmp |
|
copy file |
copy abc.txt c:\
copy abc.txt c:\jack |
cp abc.txt \
cp abc.txt \jack |
On Unix, home dirs aren't usually in root partition, so most likely you
will run 'cp abc.txt \home\jack' |
Disk Utilization |
Open Windows Explorer and look at properties of each dir or do dir |
df
df -k
bdf |
Typical output of df
/home (/dev/vg00/lvol4 ): 1792 blocks 2328 i-nodes
/opt (/dev/vg00/lvol5 ): 706928 blocks 94085 i-nodes
/tmp (/dev/vg00/lvol8 ): 563674 blocks 75151 i-nodes
/usr (/dev/vg00/lvol7 ): 1063006 blocks 141721 i-nodes
Block size can be from 1K, 2K etc depending on what you specified while configuring the OS.
Typical output of df -k
/home (/dev/vg00/lvol4 ) : 512000 total allocated Kb
896 free allocated Kb
511104 used allocated Kb
99 % allocation used
/opt (/dev/vg00/lvol5 ) : 1513116 total allocated Kb
353464 free allocated Kb
1159652 used allocated Kb
76 % allocation used
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|