sudo apt install gcc make perl
ls
ls -l
ls
list
(invalid command)
jhsdgjhksad
(invalid command)
man ls
ls --help
apropos list
ls -l De
followed by the Tab key
ls -l Do
followed by the Tab key twice
ls -l Doc
followed by the Tab key
a
followed by the Tab key
clear
(used throughout the course)
ls -l
file Documents
stat Documents
cd Documents/
pwd
cd Exercise Files
(invalid command)
cd Exercise\ Files
pwd
ls
ls -R departments/
cd departments/hr/policies
cd ..
cd ..
cd hr/policies
cd ../../finance/documents
cd -
cd
ls
ls --color=always
cd Documents/Exercise\ Files
ls -l
ls -lh
mkdir newfolder
ls -l
mkdir departments/customerservice
mkdir departments/customerservice/documents departments/customerservice/cases departments/customerservice/awards
mkdir -p departments/legal/contracts
rmdir departments/legal/contracts/
rmdir departments/legal/
rmdir departments/customerservice
cp poems.txt poems2.txt
ls
cp simple_data.txt departments/hr/employee\ info/
ls departments/hr/employee\ info/
mv poems2.txt departments/marketing
ls departments/marketing/
ls
mv departments/marketing/poems2.txt departments/marketing/literature.txt
ls departments/marketing/
mv departments/marketing/literature.txt .
ls
ls
mv *.txt departments/marketing/
ls departments/marketing/
mv departments/marketing/* .
ls
rm literature.txt
ls
cp poems.txt poems3.txt
cp poems.txt poems4.txt
ls
rm poems?.txt
ls
rm departments/customerservice/
rm -r departments/customerservice/
find . -name "poe*"
find . -name "do*"
find . -name "d*"
find . -name "*d*"
find ~/Documents -name "*d*"
ls /root
sudo ls /root
sudo ls /root
sudo -k
sudo ls /root
sudo -s
exit
ls
./test.sh
ls -l test.sh
stat test.sh
chmod 644 test.sh
followed by Ctrl+C
chmod -x test.sh
./test.sh
bash test.sh
cat test.sh
chmod u-r test.sh
chmod 244 test.sh
followed by Ctrl+C
cat test.sh
chmod 755 test.sh
./test.sh
cat test.sh
touch newfile
stat newfile
ls -l
nano test.sh
sudo chown root test.sh
nano test.sh
ls -l test.sh
sudo chown [username] test.sh
(replace [username]
with your user name)
ln -s poems.txt writing.txt
ls -l
cat writing.txt
ln poems.txt words.txt
ls -l
echo "Hello"
echo "Hello" | wc
echo "Hello world from the command line" | wc
cat poems.txt
head poems.txt
head -n5 poems.txt
tail -n3 poems.txt
cat poems.txt | cat -n | tail -n5
cat poems.txt | tail -n5 | cat -n
less poems.txt
cat poems.txt | less
grep "the" poems.txt
grep -n "the" poems.txt
grep -n "The" poems.txt
grep -in "The" poems.txt
grep -vi "the" poems.txt``grep -E "\w{6.}" poems.txt
cat simple_data.txt
awk '{print $2}' simple_data.txt
awk '{print $2 "\t" $1}' simple_data.txt
awk '{print $2 "\t" $1}' simple_data.txt | sort -n
cat simple_data.txt
sort simple_data.txt
sort -k2 simple_data.txt
cat dupes.txt
sort -u dupes.txt
vi
vi poems.txt
nano
nano poems.txt
cd ..
tar -cvf myfiles.tar Exercise\ Files/
ls -l
tar -caf myfiles.tar.gz Exercise\ Files/
tar -caf myfiles.tar.bz2 Exercise\ Files/
ls -lh
mkdir unpack1
mv myfiles.tar.bz2 unpack1/
cd unpack1/
tar -xf myfiles.tar.bz2
ls -l
cd Exercise\ Files
ls
cd ~/Documents/
mkdir unpack2
tar -xf myfiles.tar.gz -C unpack2
ls unpack2
zip -r exfiles.zip Exercise\ Files/
ls -lh
mkdir unpack3
mv exfiles.zip unpack3
cd unpack3
unzip exfiles.zip
ls -l
cd ..
mkdir unpack4
unzip unpack3/exfiles.zip -d unpack4
ls -l unpack4
cd Exercise\ Files
ls
ls 1> filelist.txt
cat filelist.txt
ls > filelist2.txt
cat filelist2.txt
ls notreal
ls notreal > filelist3.txt
ls notreal 2> filelist4.txt
cat filelist4.txt
>filelist4.txt
cat filelist4.txt
ls > filelist5.txt
echo "some appended text" >> filelist5.txt
cat filelist5.txt
env
echo $PATH
which ls
which less
ls -a
nano ~/.bash_profile
ls -l /etc/*release
cat /etc/lsb-release
cat /etc/os-release
cat /etc/*release
uname -a
uname -r
free -h
cat /proc/cpuinfo
lscpu
df -h
sudo du -hd1 /
sudo lshw | less
ip a
apt search tree
apt show tree
tree
sudo apt update
sudo apt install tree
tree
man tree
sudo apt update
sudo apt upgrade