2023 Boost - Week 4#
📺 https://youtu.be/SPoqW1CMEhY
Let's do this again. Weeks 2 and 3 were a little harder than most beginners might be able to handle. Most Linux users will be using a Linux that has been installed already. The Boost is primarily intended for them (not admins and hackers, who are also users). So we've prepared a quick-start with an existing Linux container image. Here's how to get it and another take at how to get going without having to setup anything.
- What concepts do all users need to understand?
- What does it mean to be a Linux "user" (vs "admin" or "hacker")?
-
Create a local Linux container for the Boost
podman run -it --hostname skilstak --name boost -v shared://shared ghcr.io/rwxrob/ws-skilstak
-
What is the difference between a terminal and a command line?
- What do the parts of the prompt mean?
- How do I clear the screen?
- Do not depend on Control-L
clear
(orc
)
- How do I see where I am?
pwd
- How do I see everything in this directory?
ls -al
- How do get help information about a command?
CMD -h
orCMD --help
man CMD
help CMD
apropos KEYWORD
(if you want)
- What is a directory and what is a file?
- What are special directories?
- current:
.
- parent:
..
- previous:
-
- home:
~
- current:
- How do I change directories?
cd DIR
cd -
cd ..
cd
- How do I see what's in a file?
cat FILE [FILE]
tac FILE [FILE]
more FILE
less FILE
head FILE
tail FILE
- What is a file descriptor and how do I use them?
- Understand origins of TTY (teletype machines)
- standard input (
/dev/stdin
, 0) - standard output (
/dev/stdout
, 1) - standard error (
/dev/stderr
, 2)
- What is a pipe?
ls -al | more
- How do write output of a command to a file?
ls -al > /tmp/foo
- How do I append command output to end of a file?
echo some >> /tmp/foo
echo thing >> /tmp/foo
- How do I zero out an existing or new file?
> /tmp/foo
- How do I create a new file (or update time changed)?
touch /tmp/foo
- How do I remove a file?
rm FILE
- How do I find files with a keyword in the name?
find . -name '*vim*' 2> /dev/null
- How do I send stderr to stdout as well?
find / -name '*md*' 1> /tmp/foo 2> /dev/stdout
find / -name '*md*' > /tmp/foo 2> /dev/stdout
find / -name '*md*' > /tmp/foo 2>&1
find / -name '*md*' &> /tmp/foo
Last update:
2023-05-27