Looking inside Fastpages/Github page project checks - from Bash Tutorial Tech Talk

echo "Navigate to project, then navigate to area wwhere files were cloned"
cd $project
pwd

echo ""
echo "list top level or root of files with project pulled from github"
ls

echo ""
echo "list again with hidden files pulled from github"
ls -a   # hidden files flag, many shell commands have flags

echo ""
echo "list all files in long format"
ls -al   # all files and long listing
Navigate to project, then navigate to area wwhere files were cloned
/home/user1

list top level or root of files with project pulled from github
Anaconda3-2022.05-Linux-x86_64.sh    anaconda3        java
Anaconda3-2022.05-Linux-x86_64.sh.1  ijava-1.3.0.zip  newAnaconda
Anaconda3-2022.05-Linux-x86_64.sh.2  install.py       vscode

list again with hidden files pulled from github
.              .landscape                 Anaconda3-2022.05-Linux-x86_64.sh
..             .local                     Anaconda3-2022.05-Linux-x86_64.sh.1
.bash_history  .m2                        Anaconda3-2022.05-Linux-x86_64.sh.2
.bash_logout   .motd_shown                anaconda3
.bashrc        .node-gyp                  ijava-1.3.0.zip
.cache         .npm                       install.py
.conda         .profile                   java
.config        .sts4                      newAnaconda
.gitconfig     .sudo_as_admin_successful  vscode
.ipython       .vscode-server
.jupyter       .wget-hsts

list all files in long format
total 2027388
drwxr-xr-x 18 user1 user1      4096 Aug 23 10:19 .
drwxr-xr-x  3 root  root       4096 Aug 17 21:18 ..
-rw-------  1 user1 user1      3619 Aug 26 20:07 .bash_history
-rw-r--r--  1 user1 user1       220 Aug 17 21:18 .bash_logout
-rw-r--r--  1 user1 user1      4246 Aug 18 20:48 .bashrc
drwxr-xr-x  6 user1 user1      4096 Aug 20 17:09 .cache
drwxr-xr-x  2 user1 user1      4096 Aug 18 20:48 .conda
drwxr-xr-x  3 user1 user1      4096 Aug 23 10:19 .config
-rw-r--r--  1 user1 user1        49 Aug 17 21:28 .gitconfig
drwxr-xr-x  3 user1 user1      4096 Aug 19 20:50 .ipython
drwxr-xr-x  2 user1 user1      4096 Aug 18 21:18 .jupyter
drwxr-xr-x  2 user1 user1      4096 Aug 17 21:19 .landscape
drwxr-xr-x  5 user1 user1      4096 Aug 19 20:50 .local
drwxr-xr-x  3 user1 user1      4096 Aug 20 17:09 .m2
-rw-r--r--  1 user1 user1         0 Aug 27 10:20 .motd_shown
drwxr-xr-x  3 user1 user1      4096 Aug 18 21:19 .node-gyp
drwxr-xr-x 12 user1 user1      4096 Aug 18 21:19 .npm
-rw-r--r--  1 user1 user1       807 Aug 17 21:18 .profile
drwxr-xr-x  3 user1 user1      4096 Aug 20 17:10 .sts4
-rw-r--r--  1 user1 user1         0 Aug 17 21:31 .sudo_as_admin_successful
drwxr-xr-x  5 user1 user1      4096 Aug 17 21:28 .vscode-server
-rw-r--r--  1 user1 user1       218 Aug 18 21:21 .wget-hsts
-rwxr-xr-x  1 user1 user1 690850711 May 10 11:35 Anaconda3-2022.05-Linux-x86_64.sh
-rw-r--r--  1 user1 user1 690850711 May 10 11:35 Anaconda3-2022.05-Linux-x86_64.sh.1
-rw-r--r--  1 user1 user1 690850711 May 10 11:35 Anaconda3-2022.05-Linux-x86_64.sh.2
drwxr-xr-x 28 user1 user1      4096 Aug 18 21:18 anaconda3
-rw-r--r--  1 user1 user1   3366077 Dec  6  2021 ijava-1.3.0.zip
-rw-r--r--  1 user1 user1      7471 May  5  2019 install.py
drwxr-xr-x  3 user1 user1      4096 May  5  2019 java
drwxr-xr-x  2 user1 user1      4096 Aug 18 19:17 newAnaconda
drwxr-xr-x  6 user1 user1      4096 Aug 25 10:00 vscode
echo "Look for posts"
export posts=$project/_posts  # _posts inside project
cd $posts  # this should exist per fastpages
pwd  # present working directory
ls -l  # list posts

echo ""

echo "Look for notebooks"
export notebooks=$project/_notebooks  # _notebooks is inside project
cd $notebooks   # this should exist per fastpages
pwd  # present working directory
ls -l  # list notebooks
Look for posts
bash: cd: /_posts: No such file or directory
/mnt/c/Users/User/vscode/mySite/fastpages/_notebooks
total 3116
-rwxrwxrwx 1 user1 user1 3162384 Aug 25 10:30 2020-02-20-test.ipynb
-rwxrwxrwx 1 user1 user1    1484 Aug 25 10:30 2022-08-19-javaNB.ipynb
-rwxrwxrwx 1 user1 user1    1481 Aug 25 10:30 2022-08-19-python.ipynb
-rwxrwxrwx 1 user1 user1    6809 Aug 27 16:06 2022-08-25-primitiveHacks.ipynb
-rwxrwxrwx 1 user1 user1     799 Aug 27 11:32 2022-08-27-bashChecks.ipynb
-rwxrwxrwx 1 user1 user1     771 Aug 25 10:30 README.md
drwxrwxrwx 1 user1 user1     512 Aug 25 10:30 ghtop_images
drwxrwxrwx 1 user1 user1     512 Aug 25 10:30 my_icons

Look for notebooks
bash: cd: /_notebooks: No such file or directory
/mnt/c/Users/User/vscode/mySite/fastpages/_notebooks
total 3116
-rwxrwxrwx 1 user1 user1 3162384 Aug 25 10:30 2020-02-20-test.ipynb
-rwxrwxrwx 1 user1 user1    1484 Aug 25 10:30 2022-08-19-javaNB.ipynb
-rwxrwxrwx 1 user1 user1    1481 Aug 25 10:30 2022-08-19-python.ipynb
-rwxrwxrwx 1 user1 user1    6809 Aug 27 16:06 2022-08-25-primitiveHacks.ipynb
-rwxrwxrwx 1 user1 user1     799 Aug 27 11:32 2022-08-27-bashChecks.ipynb
-rwxrwxrwx 1 user1 user1     771 Aug 25 10:30 README.md
drwxrwxrwx 1 user1 user1     512 Aug 25 10:30 ghtop_images
drwxrwxrwx 1 user1 user1     512 Aug 25 10:30 my_icons

Env

  • Env(ironement): used to show path to directories
  • "env": shows shell setting
echo "Show the shell environment variables, key on left of equal value on right"
echo ""

env
Show the shell environment variables, key on left of equal value on right

SHELL=/bin/bash
PYTHONUNBUFFERED=1
CONDA_EXE=/home/user1/anaconda3/bin/conda
_CE_M=
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=1
WSL_DISTRO_NAME=Ubuntu
ELECTRON_RUN_AS_NODE=1
VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess
NAME=DESKTOP-DS0GMEB
PWD=/home/user1
LOGNAME=user1
CONDA_PREFIX=/home/user1/anaconda3
HOME=/home/user1
LANG=C.UTF-8
WSL_INTEROP=/run/WSL/11_interop
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
CONDA_PROMPT_MODIFIER=(base) 
PYDEVD_USE_FRAME_EVAL=NO
posts=/_posts
LESSCLOSE=/usr/bin/lesspipe %s %s
VSCODE_HANDLES_SIGPIPE=true
TERM=xterm-256color
_CE_CONDA=
LESSOPEN=| /usr/bin/lesspipe %s
USER=user1
PYTHONIOENCODING=utf-8
notebooks=/_notebooks
CONDA_SHLVL=1
SHLVL=1
PAGER=cat
VSCODE_CWD=/mnt/c/Users/User/AppData/Local/Programs/Microsoft VS Code
CONDA_PYTHON_EXE=/home/user1/anaconda3/bin/python
PS1=[PEXP\[\]ECT_PROMPT>
CONDA_DEFAULT_ENV=base
WSLENV=VSCODE_WSL_EXT_LOCATION/up
VSCODE_WSL_EXT_LOCATION=/mnt/c/Users/User/.vscode/extensions/ms-vscode-remote.remote-wsl-0.66.3
PATH=/home/user1/anaconda3/bin:/home/user1/anaconda3/condabin:/home/user1/.vscode-server/bin/e4503b30fc78200f846c62cf8091b76ff5547662/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files (x86)/VMware/VMware Workstation/bin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/User/.conda:/mnt/c/Users/username/Anaconda3:/mnt/c/Users/User/AppData/Local/Programs/Python/Python38-32/Scripts:/mnt/c/Users/User/AppData/Local/Programs/Python/Python38-32:/mnt/c/Users/User/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/User/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/User/Documents/flutter/bin:/mnt/c/Users/User/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/User/AppData/Local/atom/bin
VSCODE_NLS_CONFIG={"locale":"en","availableLanguages":{}}
HOSTTYPE=x86_64
VSCODE_HANDLES_UNCAUGHT_ERRORS=true
VSCODE_IPC_HOOK_CLI=/tmp/vscode-ipc-513e3e18-9649-4849-973e-06eebf91614c.sock
_=/usr/bin/env
OLDPWD=/home/user1

Installation Checks

Python and Java Checks

python --version

python2 --version
python3 --version

java --version
Python 3.9.12
Python 2.7.18
Python 3.9.12
openjdk 11.0.16 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

Anaconda Checks

conda --version
conda 4.13.0

Jupyter and Kernel Checks

jupyter --version
jupyter kernelspec list
Selected Jupyter core packages...
IPython          : 8.2.0
ipykernel        : 6.9.1
ipywidgets       : 7.6.5
jupyter_client   : 6.1.12
jupyter_core     : 4.9.2
jupyter_server   : 1.13.5
jupyterlab       : 3.3.2
nbclient         : 0.5.13
nbconvert        : 6.4.4
nbformat         : 5.3.0
notebook         : 6.4.8
qtconsole        : 5.3.0
traitlets        : 5.1.1
Available kernels:
  bash          /home/user1/.local/share/jupyter/kernels/bash
  java          /home/user1/.local/share/jupyter/kernels/java
  javascript    /home/user1/.local/share/jupyter/kernels/javascript
  python3       /home/user1/.local/share/jupyter/kernels/python3

Project File Checks

cd ~
echo "files"
echo ""
ls

cd vscode
echo ""
echo "files in vscode directory"
echo ""
ls
files

Anaconda3-2022.05-Linux-x86_64.sh    anaconda3        java
Anaconda3-2022.05-Linux-x86_64.sh.1  ijava-1.3.0.zip  newAnaconda
Anaconda3-2022.05-Linux-x86_64.sh.2  install.py       vscode

files in vscode directory

APCSA  APCSP  fastpages  springJavaProject