Unix Command Basic
Unix Command Basic
echo
passwd command
uname command
who command:
who command prints information about all users who are currently logged in.
find command:
find is one of the powerful utilities of Unix (or Linux). It can search
the entire file-system to locate files and directories according to the specific
search criteria. Other than searching files in can also perform actions(executing
bc command:
tty command:
cat command
Redirection operator ( > and >>) can be used with cat commands to take input from
standard input devices(keyboard) and store them in a file.
cp command
mv command
Syntax:
$ mv [source_directory] [destination_directory]
● Directory Commands
The mkdir command creates a directory with a specified name in the present working
directory or specified path.
Syntax: $ mkdir [ ]
ls Command
cmp – This command is used to compare two files, and if they differ, tells the first byte
and line number where they differ. If input files are the same , return nothing.
head
tail
more
more commands allows to view text files or other output in a scrollable manner.
tr
sort
uniq
cut
This is the command for merging together different files into a single, multi-column file.
In combination with cut, useful for creating system log files.
join
This utility allows merging two files in a meaningful fashion, which essentially creates a
simple version of a relational database.
Pipe
In unix , you can connect two commands together so that the output from one program
becomes the input of the next program. Two or more commands connected in this way
form a pipe. In shell the symbol '|’ is used to represent a pipe.