You can manage your Linux systems files through command line, you may edit them through command and you may also view them.
If you want to View what is written inside your Linux file system, yes you can do through below given command.
cat /directory/sub-directory/file.extension Like if you want to view my.cnf file you may check using this command
cat /etc/mysql/my.cnf
Above Command is just for the purpose of view what is written inside a file but if you want to edit that file or want to insert or delete something from that Linux file you may use below given commands.
nano /directory/sub-directory/file.extension
OR
pico /directory/sub-directory/file.extension
Like if you want to edit your my.cnf file you may use this command as pico /etc/mysql/my.cnf OR nano /etc/mysql/my.cnf
Hope you will successfully view, edit, delete or insert anything within a file of Linux server system through above given commands.
Add a Comment