Skip to content

Master the essentials, from basic commands to training ML models on cloud servers. Get ready to elevate your skills for the big event! πŸš€

Notifications You must be signed in to change notification settings

LauzHack/cloud-computing-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LauzHack Cloud Computing Workshop

This is the repository for the LauzHack Cloud Computing Workshop on 2024-11-21.

Terminal Basics

Welcome to the Terminal Basics! This guide will help you navigate, manage files, and use essential commands in the terminal.


Table of Contents

  1. Navigation Commands
  2. File and Directory Management
  3. Viewing and Editing Files
  4. Searching Files
  5. System and Process Information
  6. Permissions Management
  7. Useful Tips

Navigation Commands

  • pwd: Print the current directory.
    $ pwd
    
  • ls: List files and directories.
    $ ls          # Basic list
    $ ls -a       # Include hidden files
    $ ls -l       # Detailed listing
    
  • cd: Change directory.
    $ cd foldername       # Navigate to a folder
    $ cd ..               # Go up one directory
    $ cd /path/to/folder  # Move to a specific folder
    

File and Directory Management

  • touch: Create an empty file.
    $ touch filename.txt
    
  • mkdir: Create a new directory.
    $ mkdir foldername
    
  • rm: Remove files or directories.
    $ rm filename          # Delete a file
    $ rm -r foldername     # Delete a directory
    
  • cp: Copy files or directories.
    $ cp source.txt destination.txt  # Copy a file
    $ cp -r folder1 folder2          # Copy a directory
    
  • mv: Move or rename files.
    $ mv oldname.txt newname.txt     # Rename a file
    $ mv file.txt /path/to/folder    # Move a file
    

Viewing and Editing Files

  • cat: Display file contents.
    $ cat filename.txt
    
  • nano: Edit files using Nano editor.
    $ nano filename.txt
    
  • less: View large files one page at a time.
    $ less filename.txt
    

Searching Files

  • grep: Search for specific text in files.
    $ grep "keyword" filename.txt        # Search within a file
    $ grep -r "keyword" .                # Recursive search
    

System and Process Information

  • whoami: Display the current user.
    $ whoami
    
  • top: View running processes in real-time.
    $ top
    
  • df -h: Check disk space usage.
    $ df -h
    
  • free -h: Display memory usage.
    $ free -h
    

Permissions Management

  • chmod: Change file permissions.
    $ chmod 755 filename
    
  • chown: Change file ownership.
    $ chown user:group filename
    

Useful Tips

  • Auto-complete with Tab: Press Tab while typing a command or file name to auto-complete.

  • Command History: Use Up and Down arrow keys to access previous commands.

  • Clear Terminal:

    $ clear
    

    Or press Ctrl + L.

  • Interrupt Commands: Press Ctrl + C to stop a running command.

  • Search Command History: Use Ctrl + R to search through previous commands.

About

Master the essentials, from basic commands to training ML models on cloud servers. Get ready to elevate your skills for the big event! πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published