![]() ![]() We have put together a list of common applications and services on Linux systems and how to test or validate their configuration files. Several applications/programs or service daemons ship with commands to check configuration files for syntax correctness. This helps to reduce the chances of the service failing to restart due to configuration errors. ![]() LINUX FILE DETAILS INSTALLHow to install the NVIDIA drivers on Ubuntu 18.Configuration syntax checking and/or testing is a key step to perform after making changes to an application’s or service’s configuration file or even after running updates.How to Install Adobe Acrobat Reader on Ubuntu 20.04 Focal Fossa Linux.Set Kali root password and enable root login.How to change from default to alternative Python version on Debian Linux.Netplan static IP on Ubuntu configuration.How to enable/disable firewall on Ubuntu 18.04 Bionic Beaver Linux.How to install Tweak Tool on Ubuntu 20.04 LTS Focal Fossa Linux.Linux IP forwarding – How to Disable/Enable.How to use bash array in a shell script. LINUX FILE DETAILS DRIVERAMD Radeon Ubuntu 20.04 Driver Installation.How to install missing ifconfig command on Debian Linux.Ubuntu 20.04 Remote Desktop Access from Windows 10.How to find my IP address on Ubuntu 20.04 Focal Fossa Linux.How to install the NVIDIA drivers on Ubuntu 20.04 Focal Fossa Linux.For example, here we get the modified date in the format of YYYY-MM-DD-HH-MM-SS. This makes it very friendly to use inside a Bash script or other type of automation. The nice thing about using the date command is that we can choose the format that we want our modified date to be output in.It is not necessary to specify any extra options, as the modified time will be output in very human readable format, but we will show you why you might want to use extra options in the next example. Yet another tool we can use is the date command.In this case, our access time is the same as the file’s modified time, which is normal for files that have not been accessed since they were last saved. To see the access time for a file with ls, append the -u option in your command.You will need to add the -l option to the command in order to see the modification time. This is already an extremely common command that all Linux users learn during their first day anyway. Another tool we can use for the job is the ls command.Note the Birth field (last line) is not supported on EXT file systems. The bolded lines contain the relevant information. The output will look something like this. Just specify the path to a file in your command. The Linux stat command will show us the access time, modification time, and change time of a file. ![]() And the change time is when a file last had its metadata changed (such as file permissions or the name of the file). The modified time is when a file last had its contents modified. The access time is when a file was last accessed (read or modified). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |