Pipe Commands In Red Hat
Jointer command pipe, end person :
A pipe is nothing but a temporary storage place where the output of one command is stored and then passed as the input for second command.
Eg : ls - To show the list file & dir
If you want to show the total number of file & dir ?
If you want to show the total number of user login?
Other jointer is ‘&’ end-person.
Eg :
Command
#Mkdir /root/Desktop/pqr &
touch /root/Desktop/pqr/a1
help Command :
man : To show the total information about like{command ‘author’ ‘syntax’ etc.}
Syntex :
Command
[root@localhost~]# man cat
To come out form man promote press “q”
info : To show the extra information.
Syntex :
Command
[root@localhost~]#info w
To come out form info command press “q”
whoami : To show the who r u.
Syntex :
Command
[root@localhost~]# whoam I
/root
who am i : To show the move about who r u.
Syntex :
Command
[root@localhost~]#who am I
Root pts/1 2020-04-12
whereis : To show the path of the command form where it is execute.
Syntex :
Command
[root@localhost~]# whereis ls
/bin/ls
[root@localhost~]#whereis useradd
/usr/sbin/useradd
whatis : Give the short information about command.
Notes : whatis command is not working. Because data base of this command is create after 24 hours of new install redhat system. If you want to use the command yet. create data base forcefully by fooling command.
echo, tty and find commands :
echo : Display a line of text.
Eg :
Command
[root@localhost~]# echo ” I love India ”
I love india
tty : Display terminal name.
find : To find-out the file & folder.
Command
#find / -name ”name of file & dir”