Linux

There are multiple Linux distributions (OS) such as Ubuntu and CentOS.

There are two interfaces to use Linux

Using Linux CLI

Command Line Cheat Sheet

./Current working directory
#
~Home directory
.filenameThe ‘.’ signifies ‘filename’ is a hidden file
pwdPresent working directory
cd
cd ..
cd /
Change directory
Move one directory up
Move to root
ls
ls -R
ls -a
ls -al
List directory contents
List contents of directory and its subcontents
List directory contents including hidden
List directory contents including hidden with details
cat
cat > filename
cat filename1 filename2>filename3
List contents of file (e.g. cat note.txt)
Creates new file
Merges filename1 & filename2 to filename3
cp
mv
Copies(cp)/Moves(mv) file to a chosen directory
e.g. cp abc.txt /home/<username>/Desktop
copies abc.txt to Desktop (moves if mv over cp)

Linux Flavor/Distro

CentOS


Reference

  1. Sicam, C., Baclit, R., Membrey, P., & Newbigin, J. (2009). Foundations of CentOS Linux Enterprise Linux On the Cheap. Berkeley, CA: Apress.
  2. Dave_Child. “Linux Command Line Cheat Sheet.” Cheatography, Cheatography Https://Cheatography.com, 28 Oct. 2011, cheatography.com/davechild/cheat-sheets/linux-command-line/.
  3. “35 Linux Basic Commands Every User Should Know (Cheat Sheet).” Hostinger Tutorials, 13 May 2021, www.hostinger.my/tutorials/linux-commands.