Documente Academic
Documente Profesional
Documente Cultură
Introductory Commands
date:
Introductory Commands
who
who
am I
Introductory Commands
man <command>
date Command
With date
command
+%h %d %H %M
who Command
With who
command:
tty Command
With tty
command:
uname Command
With uname
command:
echo Command
With echo
command:
Morning
Morning
tput Command
With tput
command:
bc A UNIX Calculator
With bc command:
? Is used as calculator in UNIX System.
bc <enter>
12 + 5 -> 17
12*12 ; 2^32
x=3 ; y=4 ; z=5
p=x+y+z
p -> 12
HOME Directory
When
? $ pwd
You
Making Directories
Like DOS, directories
Removing Dictionary
The rmdir
command removes
directories.
? You cant delete a directory unless it is empty.
? Even directory cant be removed where your
present command is.
File Listing
This
File Listing
? -r (Reversing the sort order)
? ls xa <directory name> (Subdirectory
Listing )
? ls xaR
? ls l (Long Listing)
? ls t (Sorting files by modification time)
? ls u (Sorting files by access time)
? ls i (Shows inode number for file)
Creating Files
Cat
spell Command
With spell
command:
Copying Files
The cp command copies a file or a group of
files to destination.
For required two parameters, if two ordinary
files are given, first is copied to second.
? $ cp f1.txt f2.txt
-i
Removing Files
Files
? $ rm <file> <file>
? $ rm * (It wont warn you!!)
? $ rm i * (Interactive Remove Process)
? $ rm r * (Removes files and directories
recursively)
Renaming Files
mv
More.
If
Printing File
No
file
System
Counting on FILES
UNIX
It
The
-l
Finding Commons
Comm compares
To
Escaping
It
Guess
Escaping
<Escape Applied>
Redirection
Guess
? $ cat
? $ wc
Consider
? $ cat f1
? $ ws f2
As
Two
? $ cal
? $ cal 1993
? $ ls | tee file.lst
? $ cat One | wc l | tee temp.wc
? $ cat Five | wc l | tee a temp.wc
? $ cal | tee a file1 > file2
Command Substitution
When