linux
linux show file and dir sizes
For current dir for file and dirs in current path, with max depth 1 or just simply(h, d, 1 args merged as one)
For current dir for file and dirs in current path, with max depth 1 or just simply(h, d, 1 args merged as one)
Background While working on a raw docker base image that didn’t even have basic tools installed, I tried to call apt update but the following error came up This error occurred even after setting “http_proxy” and “https_proxy” environment variables. Solution This stackoverflow answer fixed this issue. Although it was bypass, Read more…
Background While trying to build a docker image from a very raw apache spark base image, since it didn’t have any basic packages such as vim, ssh, wget, etc, I entered a running container of this image and typed apt update but the following error msg was returned This error Read more…
My Scenario I have a remote server(4.4.4.4) where I am running a python django webserver on port 8008. However, the remove server is only allowing ssh port 32686, which means that I cannot directly access remote server at port 8008 to view the webserver. This is why I am local Read more…
The most popular command However, in some cases when lsb_release is not available, then use the following
search available packages with keyword list available versions of a package. For example, if I want to list all available versions for package libcudnn7 Before running this, running apt update is recommended. After finding a specific version that I want to install, then install the packge with a specific version Read more…
Problem When I tried to run a python script using numpy, it gave the following error. Solution found a solution from here from the shell, execute the following
problem I had a shell script like the following and I was trying to run it with $ sh somescript.sh but it kept failing with the error something liek “cd: no directory”. Solution After resaving the script file with LF instead of CRLF, the script worked. I was using intellij Read more…
I encountered the infamous “‘grub–efi–amd64–signed‘ package failed to install into /target/.” error when installing ubuntu 20.04 along with preinstalled windows 10 in my desktop. Here are the setting environments gigabyte mainboard one SSD, one HDD windows 10 already installed on SSD I wanted to install ubuntu 20.04 on the HDD Read more…