Using Multiple Commands
In Linux so far you have seen how to use the command-line Interface (CLI). For Example: if you run “date” command we get the out put date and time
[root@engrabhishekroshan /]# date
Wed Jan 31 06:15:38 PM IST 2024
[root@engrabhishekroshan /]#
For Example: If you run “who” command ,we get the output as which all users logged into the system.
[root@engrabhishekroshan /]# who
root pts/0 2024-01-26 10:16 (192.168.72.1)
[root@engrabhishekroshan /]#
Using multiple Commands we can combined these two commands into a single commands by using semicolon ;
[root@engrabhishekroshan /]# date;who
Wed Jan 31 06:22:05 PM IST 2024
root pts/0 2024-01-26 10:16 (192.168.72.1)
[root@engrabhishekroshan /]#