How to view the status of remote server files in Linux

How to view the status of remote server files in Linux

As shown below:

The test command determines whether a file exists:

ssh usrname@remotehost "test -e remote_file_path"

The stat command gets the timestamp of when a file was last modified:

ssh usrname@remotehost "stat -c %Y remote_file_path"

The above method of checking the remote server file status in Linux is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

You may also be interested in:
  • How to check whether the ports of the local computer and the remote server are connected under Linux
  • Linux uses the scp command to copy files to the local computer and copy local files to the remote server
  • Connect to the remote server through jsch in Java to execute linux commands
  • Detailed explanation and examples of file transfer between Linux and Windows
  • C language implementation of socket file transfer under Linux
  • Linux network programming: reliable file transfer example based on UDP
  • Linux network programming socket file transfer example
  • How to connect to a remote server and transfer files via a jump server in Linux

<<:  How to fix abnormal startup of mysql5.7.21

>>:  mysql5.7.22 download process diagram

Recommend

Nginx cache files and dynamic files automatic balancing configuration script

nginx Nginx (engine x) is a high-performance HTTP...

How to configure wordpress with nginx

Before, I had built WordPress myself, but at that...

Detailed explanation of the background-position percentage principle

When I was helping someone adjust the code today,...

MySQL master-slave principle and configuration details

MySQL master-slave configuration and principle, f...

Tutorial on installing MySQL 5.7.28 on CentOS 6.2 (mysql notes)

1. Environmental Preparation 1.MySQL installation...

Implementation of form submission in html

Form submission code 1. Source code analysis <...

How to start/stop Tomcat server in Java

1. Project Structure 2.CallTomcat.java package co...

innerHTML Application

Blank's blog: http://www.planabc.net/ The use...

vue-cropper component realizes image cutting and uploading

This article shares the specific code of the vue-...

Summary of the differences between Html, sHtml and XHtml

For example: <u> This has no ending characte...

How to add a pop-up bottom action button for element-ui's Select and Cascader

As shown in the figure below, it is a common desi...

Implement a simple search engine based on MySQL

Table of contents Implementing a search engine ba...

Complete steps to configure basic user authentication at the Nginx level

Preface Application scenario: probably the intern...