Hi Team,
Can any one tell the difference between cat and systemctl cat xyz.txt
Regard
Kanna
difference between cat and systemctl cat
Re: difference between cat and systemctl cat
https://www.digitalocean.com/community/ ... he-journal
The normal cat assumes that you give a path to a file.
expects thus to find the 'foo' from current directory.
The unit files are on multiple locations. The systemctl knows where. It's cat command is not a generic cat; it is for looking at unit files.
A unit file contains the parameters that systemd uses to manage and run a unit. To see the full contents of a unit file, type:Code: Select all
systemctl cat nginx.service
The normal cat assumes that you give a path to a file.
Code: Select all
cat foo
The unit files are on multiple locations. The systemctl knows where. It's cat command is not a generic cat; it is for looking at unit files.