KandZ – Tuts

We like to help…!

Linux CLI HowTo 1 ๐Ÿง How Tos for Beginners

1 – Linux Command Line How-Tos for Beginners

โœ… How to Open Different Terminal Emulators

Why: Learn how to access command line in different desktop environments.

Steps:

  1. KDE (Konsole):
  • Press Alt+F2 then type konsole
  • Or click Applications โ†’ System โ†’ Konsole
  1. GNOME (Terminal):
  • Press Ctrl+Alt+T
  • Or click Activities โ†’ Search “Terminal”
  1. XFCE:
  • Press Ctrl+Alt+T or Applications โ†’ Accessories โ†’ Terminal

๐Ÿ“… How to Check Current Date and Calendar

Why: Learn basic date/time commands.

Steps:

  1. Type these commands:
date
cal
  1. You’ll see current date and calendar for current month

๐Ÿ” How to Use Command History

Why: Navigate through previous commands easily.

Steps:

  1. Press โ†‘ (up arrow) to go through previous commands
  2. Press โ†“ (down arrow) to go back down
  3. Press Ctrl+R to search through history

๐Ÿ” How to Learn What Commands Are Available

Why: Discover what commands you can use.

Steps:

  1. List all available commands:
ls /bin
  1. Or see all commands in PATH:
compgen -c | head -20

๐Ÿ“– How to Get Help on Commands

Why: Learn how to understand what commands do.

Steps:

  1. Use man command:
man date
  1. Or use --help:
date --help

๐Ÿงช How to Exit the Terminal

Why: Learn how to close your session properly.

Steps:

  1. Type:
exit
  1. Or press Ctrl+D

๐Ÿ“… How to See Different Calendar Formats

Why: Explore various calendar views.

Steps:

  1. Current month:
cal
  1. Specific month/year:
cal 12 2024
  1. Year view:
cal 2026

๐Ÿ• How to Check System Time and Date

Why: Understand how your system keeps track of time.

Steps:

  1. Show current date/time:
date
  1. Show in different formats:
date +"%A, %B %d, %Y"

โฌ…๏ธ โžก๏ธ How to Move Cursor in Command Line

Why: Navigate quickly within your commands.

Steps:

  1. Use left/right arrows to move cursor
  2. Ctrl+A – go to beginning of line
  3. Ctrl+E – go to end of line
  4. Ctrl+U – cut from cursor to beginning of line

๐Ÿงช Exercise 1: Date Command Practice for Chapter 1

  1. Open terminal
  2. Type:
date
  1. Type:
date +"%Y-%m-%d"
  1. Type:
date +"%H:%M:%S"

๐Ÿ“… Exercise 2: Calendar Exploration for Chapter 1

  1. Type:
cal
  1. Type:
cal 1 2024
  1. Type:
cal 12 2023

๐Ÿ”„ Exercise 3: History Navigation for Chapter 1

  1. Type some commands like date, cal, ls
  2. Use up arrow to recall previous commands
  3. Edit one of the recalled commands and press Enter

๐Ÿ“ Key Files and Directories to Remember for Chapter 1

CommandWhat it does
dateShows current date/time
calShows calendar
exitCloses terminal session
manShows manual pages
ls /binLists all commands

๐ŸŽฏ Quick Reference Commands for Chapter 1

  • โ†‘ – Previous command
  • โ†“ – Next command
  • Ctrl+R – Search history
  • Ctrl+C – Cancel current command
  • Ctrl+L – Clear screen
  • Ctrl+D – Exit terminal

Leave a Reply