Frequently used bash commands
Commands which I often use and they are helpful for me.
find
If you looking for some files:
find . -type f -iname '*filename*'
# or
find ./dir/path -name 'fullFileName.extension'
You can search and do something with the results:
find . -type f -iname '*.properties' -exec grep 'property.name' {} \;
changing the java version in git bush
export JAVA_HOME='/c/soft/java/jdk-17.0.2/'
export PATH=$JAVA_HOME/bin:$PATH
and checking it out
java -version
psql
It may not belong to the Linux command category, but I use it very often.
PGPASSWORD='yourpassword' psql -h hostname -p 5432 -d dbname -U username -c 'drop schema schemaname cascade'