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 ?

Command
#ls  | wc –l

If you want to show the total number of user login?

Command
#Who | wc –l

Other jointer is ‘&’ end-person.

Eg :

Command
#Mkdir /root/Desktop/pqr   &
touch  /root/Desktop/pqr/a1

help Command :

red hat 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.

Notepad

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.

Command
#makewhatis

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.

Command
#tty
/dev/pts/1

find : To find-out the file & folder.

Command
#find / -name ”name of file & dir”
#Jointer_command_pipe #end_person #help_Command_in_red_hat #echo_command_in_red_hat #tty_command_in_red_hat #find_commands_in_red_hat

(New page will open, for Comment)

Not yet commented...