4/30/2021

python source code to print list of all subfolder and files

 

for path, subdirs, files in os.walk('/your_folder/'):
for name in files:
print(os.path.join(path, name))

4/29/2021

Install python 3.8 on Linux

 

Following below step:

-------------

wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz

tar xvf Python-3.8.3.tgz

cd Python-3.8*/

./configure --enable-optimizations

make altinstall

-------------



Run amazon-linux 2 on local computer using Docker

 

I suppose you already installed docker.


1. pull Amazon Linux image

> docker pull amazonlinux

* https://hub.docker.com/_/amazonlinux


2. run container and enter the os

> docker run -it amazonlinux /bin/bash


3. check version

bash-4.2# > cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

or

bash-4.2# > cat /etc/system-release
Amazon Linux release 2 (Karoo)


Thank you.

🙇🏻‍♂️