GNU/Linux Change File Timestamp
Force file timestamp to a specific datetime.
touch -t 202301251415.00 Filename
GNU/Linux Change File Timestamp Read More »
All posts containing GNU/Linux-related scripts and patterns.
Force file timestamp to a specific datetime.
touch -t 202301251415.00 Filename
GNU/Linux Change File Timestamp Read More »
Delete evicted pods from current OpenShift project.
oc get pods | grep Evicted | awk '{print $1}' | xargs oc delete pod
Create an OpenShift secret from the command line.
oc create secret generic gateway1 --from-file=server.p12
GNU/Linux Openshift Frequently Used Command Read More »
Mavin compile (Java) code and create local package.
mvn clean package -DskipTests
Run a specific unit test from the command line.
mvn test -Dtest=JavaClassTest#specificTest
GNU/Linux Maven Frequently Used (Quickref) Read More »
Example script with a check on the number of submitted parameters.
#!/bin/bash
[ $# -ne 1 ] && echo "ERROR: Input Required" && exit 1;
echo $1
GNU/Linux Bash Check Command Line Parameter Read More »