Skip to content

Latest commit

 

History

History

0x00-shell_basics

img

shell basics

rtfm

Intro

In this session, we will introduce shell scripriting and have a look at the most basic scripting commands. Hang tight.

Resources

  1. What is the shell?
  2. Navigation
  3. Looking around
  4. A guided tour
  5. Manipulating files
  6. Working with commands
  7. Reading man pages
  8. Keyboard shortcuts
  9. LTS
  10. Shebang

Man or help

  • cd
  • ls
  • pwd
  • less
  • file
  • ln
  • cp
  • mv
  • rm
  • mkdir
  • type
  • which
  • help
  • man

Learning objectives

By the end of this project, you should be able to explain to anyone Without the help of google the following concepts

General Objectives

  • What does RTFM mean?
  • What is shebang?

What is the shell?

  • What is the shell
  • What is the difference between a terminal and a shell
  • What is the shell prompt
  • How to use the history (the basics)

Navigation

  • What do the commands or built-ins cd, pwd, ls do
  • How to navigate the filesystem What are the . and .. directories
  • What is the working directory, how to print it and how to change it
  • What is the root directory
  • What is the home directory, and how to go there
  • What is the difference between the root directory and the home directory of the user root
  • What are the characteristics of hidden files and how to list them
  • What does the command cd - do

Looking around

  • What do the commands ls, less, file do
  • How do you use options and arguments with commands
  • Understand the ls long format and how to display it
  • A Guided Tour
  • What does the ln command do
  • What do you find in the most common/important directories
  • What is a symbolic link
  • What is a hard link
  • What is the difference between a hard link and a symbolic link

Manipulating files

  • What do the commands cp, mv, rm, mkdir do
  • What are wildcards and how do they work
  • How to use wildcards

Working with commands

  • What do type, which, help, man commands do
  • What are the different kinds of commands
  • What is an alias
  • When do you use the command help instead of man

Reading man pages

  • How to read a man page
  • What are man page sections
  • What are the section numbers for User commands, System calls and Library functions

Keboard shortcuts for bash

  • Common shortcuts for Bash

Quizes

Quiz