BackUp: GitHub Project, GitHub Gist.
echo $SHELL
Debian(Ubuntu): apt, apt-get;
Fedora: dnf;
CentOS: yum;
java -version
macOS:
brew deps xxx -tree
To find out "python":
ls -l | grep "python"
To check whether has been upgrade on Debian:
sudo apt update
sudo apt-get update
Debian To upgrade all the latest version:
sudo apt update && sudo apt upgrade
refer: How do I check for updates on Debian 11?
To search package on macOS/Debian:
macOS:
brew search package
Debian:
apt search package
apt-cache madison package
macOS/Linux: Ctrl
+ c
.
Just login your VM on Host terminal and then check, e.g: Debian.
df -h
df -T
df -i
df -k
free -l
sudo fdisk -l
sudo cfdisk
Copy current line: esc
+ yy
;
Paste to the cursor: p
;
Enclose the whole path by double-quotes "
, single-quote '
or escape the
space character using a backslash \
.
Reboot/restart Ubuntu(Debian) : sudo reboot
;
Shut down Debian:
sudo poweroff
sudo shutdown -h now
sudo systemctl poweroff
ldd --version
Or, e.g: x86_64-Debian/x_64-Debian
:
/lib/x86_64-linux-gnu/libc.so.6
i386-Debian
:
/lib/i386-linux-gnu/libc.so.6
Rename only one:
mv source_file_or_directory destination
If destination_file
does not exist, source_file_or_directory
is renamed
destination_file
.
Rename multiple files, using regular expressions.
1.How to change or rename a file, folder, or directory.
(From the Command Prompt, type to compile)
javac HelloWorld.java
(At the Command Prompt, type to Execute)
java HelloWorld
(Try running your program with the command line while Troubleshooting)
java -classpath ./ HelloWorld
Reference: Hello, World in Java on Mac OS X.
java -verbose
/usr/libexec/java_home -V
(.tar.gz) tar -xzvf decompress_file_with_tar_gz
(.zip) unzip -d /decompress/into/this/directory file_with_zip
(sudo) ln -sv /source/directory/file /direction/file/soft/link