Automation & Scripting Flashcards
What is shorthand for ‘then’ ?
&&
What is shorthand for ‘else’?
||
What is libvirt
VM management software: API library, daemon and commands virt-install, virsh
How do you run multiple commands in the same line
Use a semi colon between each one
command ; command
What signal does CTRL-C send
SIGINT
(-2)
What signal does CTRL-Z send
SIGTSTOP
(-17)
(Stop -pauses)
How to start a shell process and let it continue even if you exit the shell
nohup
Will write output ~/nohup.out
How to restart a stopped job?
bg JOB#
or
fg JOB#
What does ‘atq’ do?
Displays a list of the pending ‘at’ jobs
Where is the Git configuration?
(2 places)
Global is in ~/.gitconfig
Locally /WORKDIR/.git/config
View ‘git config —list’
Configure your Git remote repository …
git remote add origin URL
Then check status with ‘git remote v’
Push your project to the remote repository
git push -u origin main
What’s the difference between ‘git pull’ and ‘git clone’?
‘pull’ just fetches the most recent files
‘clone’ copied the entire project.
How do you ‘pull’ down new project files from the remote repository?
git remote add origin URL
git pull -u origin main
Create a lightweight Git tag
git tag TAGNAME