sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8edcf53f6138 laradock_nginx "/bin/bash /opt/star…" 2 minutes ago Up 2 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp laradock_nginx_1
6af4992eb734 laradock_php-fpm "docker-php-entrypoi…" 3 minutes ago Up 2 minutes 9000/tcp laradock_php-fpm_1
268a0b61992e laradock_phpmyadmin "/docker-entrypoint.…" 4 minutes ago Up 3 minutes 0.0.0.0:8080->80/tcp laradock_phpmyadmin_1
feab1cfb082b laradock_workspace "/sbin/my_init" 4 minutes ago Up 3 minutes 0.0.0.0:2222->22/tcp laradock_workspace_1
057bc9f4e880 laradock_redis "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 0.0.0.0:6379->6379/tcp laradock_redis_1
44ce5f6ab60f laradock_mysql "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp laradock_mysql_1
4f420673463d docker:dind "dockerd-entrypoint.…" 4 minutes ago Up 4 minutes 2375-2376/tcp laradock_docker-in-docker_1
sudo docker logs $(sudo docker container ls -a | grep laradock_phpmyadmin_1 | awk '{print $1}')
phpMyAdmin not found in /var/www/html - copying now...
Complete! phpMyAdmin has been successfully copied to /var/www/html
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
[Sat Jan 11 20:33:31.473304 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.1 configured -- resuming normal operations
curl http://localhost/
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
`
проверяли ? и что кавычки убраны из $OU
? и что нет $upn
? $_
. но это дело вкуса -d, --directory list directories themselves, not their contents
-r, --reverse reverse order while sorting
-t sort by modification time, newest first
-1 list one file per line. Avoid '\n' with -q or -b
pushd /var/log
ls -ltdr * | tail -10
даст-rw-r----- 1 root adm 532 Jan 7 23:08 apport.log
-rw-r--r-- 1 root root 26653 Jan 7 23:10 Xorg.0.log.old
-rw-r--r-- 1 root root 1856 Jan 8 10:09 gpu-manager.log
-rw-r--r-- 1 root root 25126 Jan 8 10:09 Xorg.0.log
-rw-r----- 1 syslog adm 120188 Jan 8 10:09 kern.log
-rw------- 1 root utmp 2304 Jan 8 10:10 btmp
-rw-r----- 1 syslog adm 13670 Jan 8 10:10 auth.log
-rw-r----- 1 syslog adm 171087 Jan 8 10:10 syslog
-rw-rw-r-- 1 root utmp 23040 Jan 8 10:10 wtmp
-rw-rw-r-- 1 root utmp 292292 Jan 8 10:10 lastlog
ls -1tdr * | tail -10
apport.log
Xorg.0.log.old
gpu-manager.log
Xorg.0.log
kern.log
btmp
auth.log
syslog
wtmp
lastlog
...
ResultSet rs = statement
.executeQuery("select rowid, name, id from person");
while (rs.next()) {
System.err
.println("rowid = " + rs.getString("rowid") ...
.getRowId
.setInt
.updateRowId
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<compilerArgument>-Xlint:all</compilerArgument>
<compilerArgument>-Xlint:-processing</compilerArgument>
<compilerArgument>-Dfile.encoding=${project.build.sourceEncoding}</compilerArgument>
chcp 65001
set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
cp -P /tmp/a /tmp/b.xml^M
/tmp/b.xml^M
\r
sed -i 's|\r||g' a.sh