echo "Using conditional statement to create a project directory and project"

# Variable section
export project_dir=$HOME/vscode  # change vscode to different name to test git clone
export project=$project_dir/Fastpages  # change APCSP to name of project from git clone
export project_repo="https://github.com/Random-IGN/Fastpages.git"  # change to project of choice

cd ~    # start in home directory

# Conditional block to make a project directory
if [ ! -d $project_dir ]
then 
    echo "Directory $project_dir does not exists... makinng directory $project_dir"
    mkdir -p $project_dir
fi
echo "Directory $project_dir exists." 

# Conditional block to git clone a project from project_repo
if [ ! -d $project ]
then
    echo "Directory $project does not exists... cloning $project_repo"
    cd $project_dir
    git clone $project_repo
    cd ~
fi
echo "Directory $project exists."
Using conditional statement to create a project directory and project
Directory /root/vscode exists.
Directory /root/vscode/Fastpages exists.
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
/root/vscode/Fastpages

list top level or root of files with project pulled from github
2022-05-15-07-21-16.png  README.md        _notebooks  assets
2022-05-15-07-24-25.png  _action_files    _pages      docker-compose.yml
2022-05-15-07-25-15.png  _config.yml      _plugins    images
Gemfile                  _fastpages_docs  _posts      index.html
LICENSE                  _includes        _sass
Makefile                 _layouts         _word

list again with hidden files pulled from github
.                        Gemfile          _pages
..                       LICENSE          _plugins
.devcontainer.json       Makefile         _posts
.git                     README.md        _sass
.gitattributes           _action_files    _word
.github                  _config.yml      assets
.gitignore               _fastpages_docs  docker-compose.yml
2022-05-15-07-21-16.png  _includes        images
2022-05-15-07-24-25.png  _layouts         index.html
2022-05-15-07-25-15.png  _notebooks

list all files in long format
total 488
drwxr-xr-x 16 root root   4096 Aug 22 19:59 .
drwxr-xr-x  5 root root   4096 Aug 26 23:13 ..
-rw-r--r--  1 root root    420 Aug 22 19:59 .devcontainer.json
drwxr-xr-x  8 root root   4096 Aug 23 20:43 .git
-rw-r--r--  1 root root     84 Aug 22 19:59 .gitattributes
drwxr-xr-x  4 root root   4096 Aug 22 19:59 .github
-rw-r--r--  1 root root    161 Aug 22 19:59 .gitignore
-rw-r--r--  1 root root 207007 Aug 22 19:59 2022-05-15-07-21-16.png
-rw-r--r--  1 root root  90979 Aug 22 19:59 2022-05-15-07-24-25.png
-rw-r--r--  1 root root  81691 Aug 22 19:59 2022-05-15-07-25-15.png
-rwxr-xr-x  1 root root   1304 Aug 22 19:59 Gemfile
-rw-r--r--  1 root root  11351 Aug 22 19:59 LICENSE
-rwxr-xr-x  1 root root   1422 Aug 22 19:59 Makefile
-rwxr-xr-x  1 root root   3611 Aug 22 19:59 README.md
drwxr-xr-x  2 root root   4096 Aug 22 19:59 _action_files
-rw-r--r--  1 root root   3645 Aug 22 19:59 _config.yml
drwxr-xr-x  2 root root   4096 Aug 22 19:59 _fastpages_docs
drwxr-xr-x  2 root root   4096 Aug 22 19:59 _includes
drwxr-xr-x  2 root root   4096 Aug 22 19:59 _layouts
drwxr-xr-x  4 root root   4096 Aug 26 15:11 _notebooks
drwxr-xr-x  2 root root   4096 Aug 22 19:59 _pages
drwxr-xr-x  2 root root   4096 Aug 22 19:59 _plugins
drwxr-xr-x  2 root root   4096 Aug 23 19:09 _posts
drwxr-xr-x  3 root root   4096 Aug 22 19:59 _sass
drwxr-xr-x  2 root root   4096 Aug 22 19:59 _word
drwxr-xr-x  4 root root   4096 Aug 22 19:59 assets
-rwxr-xr-x  1 root root   1136 Aug 22 19:59 docker-compose.yml
drwxr-xr-x  3 root root   4096 Aug 22 19:59 images
-rw-r--r--  1 root root    189 Aug 27 12:02 index.html
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
Look for posts
/root/vscode/Fastpages/_posts
total 8
-rwxr-xr-x 1 root root 1966 Aug 23 19:40 2020-01-14-test-markdown-post.md
-rw-r--r-- 1 root root  720 Aug 22 19:59 README.md
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 notebooks
/root/vscode/Fastpages/_notebooks
total 3108
-rw-r--r-- 1 root root 3162384 Aug 22 19:59 2020-02-20-test.ipynb
-rw-r--r-- 1 root root    1258 Aug 26 15:11 2022-08-22-firstnotebook.ipynb
-rw-r--r-- 1 root root       0 Aug 26 15:11 2022-08-26-secondnotebook.ipynb
-rw-r--r-- 1 root root     771 Aug 22 19:59 README.md
drwxr-xr-x 2 root root    4096 Aug 22 19:59 ghtop_images
drwxr-xr-x 2 root root    4096 Aug 22 19:59 my_icons
echo "Look for images in notebooks, print working directory, list files"
cd $notebooks/images  # this should exist per fastpages
pwd
ls -l
Look for images in notebooks, print working directory, list files
bash: cd: /root/vscode/Fastpages/_notebooks/images: No such file or directory
/root/vscode/Fastpages/_notebooks
total 3108
-rw-r--r-- 1 root root 3162384 Aug 22 19:59 2020-02-20-test.ipynb
-rw-r--r-- 1 root root    1258 Aug 26 15:11 2022-08-22-firstnotebook.ipynb
-rw-r--r-- 1 root root       0 Aug 26 15:11 2022-08-26-secondnotebook.ipynb
-rw-r--r-- 1 root root     771 Aug 22 19:59 README.md
drwxr-xr-x 2 root root    4096 Aug 22 19:59 ghtop_images
drwxr-xr-x 2 root root    4096 Aug 22 19:59 my_icons
echo "Navigate to project, then navigate to area wwhere files were cloned"

cd $project
echo "show the contents of README.md"
echo ""

cat README.md  # show contents of file, in this case markdown
echo ""
echo "end of README.md"
Navigate to project, then navigate to area wwhere files were cloned
show the contents of README.md

[//]: # (This template replaces README.md when someone creates a new repo with the fastpages template.)

![](https://github.com/Random-IGN/Fastpages/workflows/CI/badge.svg) 
![](https://github.com/Random-IGN/Fastpages/workflows/GH-Pages%20Status/badge.svg) 
[![](https://img.shields.io/static/v1?label=fastai&message=fastpages&color=57aeac&labelColor=black&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAjC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](https://github.com/fastai/fastpages)

https://Random-IGN.github.io/Fastpages/

# My Blog


_powered by [fastpages](https://github.com/fastai/fastpages)_


## What To Do Next?

Great!  You have setup your repo.  Now its time to start writing content.  Some helpful links:

- [Writing Blogs With Jupyter](https://github.com/fastai/fastpages#writing-blog-posts-with-jupyter)

- [Writing Blogs With Markdown](https://github.com/fastai/fastpages#writing-blog-posts-with-markdown)

- [Writing Blog Posts With Word](https://github.com/fastai/fastpages#writing-blog-posts-with-microsoft-word)

- [(Optional) Preview Your Blog Locally](_fastpages_docs/DEVELOPMENT.md)

Note: you may want to remove example blog posts from the `_posts`,  `_notebooks` or `_word` folders (but leave them empty, don't delete these folders) if you don't want these blog posts to appear on your site.

Please use the [nbdev & blogging channel](https://forums.fast.ai/c/fastai-users/nbdev/48) in the fastai forums for any questions or feature requests.

end of README.md
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
project=/root/vscode/Fastpages
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=1
WSL_DISTRO_NAME=Ubuntu
ELECTRON_RUN_AS_NODE=1
VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess
NAME=HP_Pavilion
PWD=/root/vscode/Fastpages
LOGNAME=root
MOTD_SHOWN=update-motd
project_dir=/root/vscode
HOME=/root
LANG=C.UTF-8
WSL_INTEROP=/run/WSL/18_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:
WAYLAND_DISPLAY=wayland-0
posts=/root/vscode/Fastpages/_posts
LESSCLOSE=/usr/bin/lesspipe %s %s
VSCODE_HANDLES_SIGPIPE=true
TERM=xterm-256color
LESSOPEN=| /usr/bin/lesspipe %s
USER=root
PYTHONIOENCODING=utf-8
notebooks=/root/vscode/Fastpages/_notebooks
DISPLAY=:0
SHLVL=1
PAGER=cat
project_repo=https://github.com/Random-IGN/Fastpages.git
VSCODE_CWD=/mnt/c/Users/singh/AppData/Local/Programs/Microsoft VS Code
XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
PS1=[PEXP\[\]ECT_PROMPT>
WSLENV=VSCODE_WSL_EXT_LOCATION/up
VSCODE_WSL_EXT_LOCATION=/mnt/c/Users/singh/.vscode/extensions/ms-vscode-remote.remote-wsl-0.66.3
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/root/.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/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/singh/anaconda3:/mnt/c/Users/singh/anaconda3/Library/mingw-w64/bin:/mnt/c/Users/singh/anaconda3/Library/usr/bin:/mnt/c/Users/singh/anaconda3/Library/bin:/mnt/c/Users/singh/anaconda3/Scripts:/mnt/c/Users/singh/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/singh/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin
VSCODE_NLS_CONFIG={"locale":"en","availableLanguages":{}}
HOSTTYPE=x86_64
PULSE_SERVER=/mnt/wslg/PulseServer
VSCODE_HANDLES_UNCAUGHT_ERRORS=true
OLDPWD=/root/vscode/Fastpages/_notebooks
VSCODE_IPC_HOOK_CLI=/mnt/wslg/runtime-dir/vscode-ipc-4885dc80-28a6-4bf1-ac5c-e9093389746b.sock
_=/usr/bin/env
cd $project

echo ""
echo "show the secrets of .git"
cd .git
ls -l

echo ""
echo "look at config file"
cat config
show the secrets of .git
total 52
-rw-r--r-- 1 root root    23 Aug 22 19:59 HEAD
drwxr-xr-x 2 root root  4096 Aug 22 19:59 branches
-rw-r--r-- 1 root root   269 Aug 23 20:43 config
-rw-r--r-- 1 root root    73 Aug 22 19:59 description
drwxr-xr-x 2 root root  4096 Aug 23 20:43 hooks
-rw-r--r-- 1 root root 11714 Aug 22 19:59 index
drwxr-xr-x 2 root root  4096 Aug 22 19:59 info
drwxr-xr-x 3 root root  4096 Aug 22 19:59 logs
drwxr-xr-x 4 root root  4096 Aug 22 19:59 objects
-rw-r--r-- 1 root root   271 Aug 22 19:59 packed-refs
drwxr-xr-x 5 root root  4096 Aug 22 19:59 refs

look at config file
[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
[remote "origin"]
	url = https://github.com/Random-IGN/Fastpages.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
python2 --version
python3 --version
Python 2.7.18
Python 3.8.10
conda list
conda: command not found

echo Conda Check
# test for a kernel installation
test="jupyter" # keyword
check=`conda list | grep $test` # run command
n=${#check} # determine length

if [[ ${n} > 0 ]];  # testt length
then # greater than zero
    echo "$check"
else # less than zero
    echo "$test not found"
fi
Conda Check
conda: command not found
jupyter not found
jupyter --version
jupyter kernelspec list
jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : 5.3.1
ipython          : 7.13.0
ipykernel        : 5.2.0
jupyter client   : 6.1.2
jupyter lab      : not installed
nbconvert        : 5.6.1
ipywidgets       : 6.0.0
nbformat         : 5.0.4
traitlets        : 4.3.3
Available kernels:
  bash       /usr/local/share/jupyter/kernels/bash
  python3    /usr/share/jupyter/kernels/python3
test="python3" # keyword
check=`jupyter kernelspec list | grep $test` # run command
n=${#check} # determine length

if [[ ${n} > 0 ]];  # testt length
then # greater than zero
    echo "$check"
else # less than zero
    echo "$test not found"
fi
  python3    /usr/share/jupyter/kernels/python3