Linux Training Session 5

Jun 22, 2024

Live Session on Linux Training

Introduction

  • Greetings to everyone. The live session of Linux training, number five, is starting shortly.
  • Requests to share the live stream on social media for others who want to learn Linux.
  • Joining of training groups on Telegram is encouraged; an invitation link is provided.

Session Start

  • Trainer mentions to address previous session's doubt and provide practical exercises and homework.
  • Encouraging attendees to ask questions related to previous training content.
  • Responses to various individual greetings and queries.
  • Emphasis on the importance of sharing this session to benefit more people.
  • Trainer explains Linux file management commands.

Commands Discussed

Navigation and Directory Management

  • pwd (Present Working Directory): Shows current directory.
  • cd (Change Directory): Used to change from current directory to another.
    • Usage examples including moving to exact paths & back to home directory using shortcuts (cd only, cd .., cd -).
  • ls (list): Displays list of files and directories in the current/selected directory.
    • List hidden files: ls -a
    • Long listing format: ls -l
    • Long listing including hidden files: ls -la
    • Human-readable format: ls -lh
  • mkdir (make directory): Create directories.
    • To create parent and child directories simultaneously: mkdir -p parent/child/grandchild
    • Deletion command: rmdir for empty directories, rm -r for nonempty.
    • Warnings about usage of rm -rf for forceful deletion.

Path types

  • Absolute Path: Starting from the root directory and specifying full path.
  • Relative Path: Based on the current location, often uses ./ or `../

Miscellaneous Commands

  • cat: View contents of a file, input/output redirection.
  • find: Locate files with specific parameters.
  • alias: Create custom shortcuts for commands.
  • su: Switch user command for executing tasks as superuser.
  • cal: Display calendar.
  • date: Display date.
  • history: View previously entered commands in session.

Practical Exercises

  • Giving practice questions for attendees to solve on their own.
    • Exercises about displaying calendars, changing directories, listing files, finding hidden files, etc.

Future Topics & Participant Questions

  • Topics like backup management, extended commands, and storage management will be covered in upcoming sessions.
  • Addressed participant's questions around scripts, file structures, and permissions.

Conclusion

  • Request to like the video, subscribe to the channel, and join the Telegram group for updates.
  • Closing remarks and encouraging viewers to join the next session with more participants.

Keywords

  • pwd
  • cd
  • ls
  • mkdir
  • Absolute Path
  • Relative Path
  • alias
  • su
  • cal
  • date
  • history