Move around the filesystem
Print your location, list files, and move into a project directory.
pwd && ls -la && cd ~/projectsGet comfortable where DevOps starts: the command line.
Print your location, list files, and move into a project directory.
pwd && ls -la && cd ~/projectsCreate a directory tree and an empty file in one step.
mkdir -p demo/logs && touch demo/README.mdPrint a file, then search its contents for a word.
cat README.md\ngrep -n "setup" README.mdInspect permissions and grant execute permission to a script you own.
ls -l deploy.sh\nchmod u+x deploy.shFilter the process list to locate a service by name.
ps aux | grep nginxCount matching log lines without creating an intermediate file.
grep -i "error" app.log | wc -l