Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

IS 601 - Module 1

ls

Used to display files in the current or a different folder (with either absolute or relative path)

Command usage includes (among others):

  • ls - Shows files in a horizontal non-list format
  • ls -l - Shows files in a vertical list format
  • ls -lh - Shows files in a vertical list format with human-readable filesize

cd

Used to change the directory for the current shell session

Command usage:

  • cd <new directory path> - Changes the current directory to the specified path

grep

Used to search for patterns within text

Command usage:

  • grep <pattern> <file> - Pattern to search for in a file

chown

Used to change ownership of files or directories

Command usage:

  • chown <new owner> <file or directory> - Set ownership of the file or directory to the new owner
  • chown -R <new owner> <file or directory> - Recursively set ownership of the directory and its contents to the new owner

kill

Used to kill a process Command usage:

  • kill <pid> - Kill a process using its PID
  • kill -9 <pid> - Force kill a process using its PID

tail

Used to display the last part of the contents of a file

Command usage:

  • tail -n <line count> <filename> - Display the last lines of the specified file
  • tail -f <filename> - Continuously display new lines added to the specified file

df

Used to display mounted partition sizes and used space

Command usage:

  • df -h - Display disk space usage in a human-readable format

chmod

Used to edit permissions on a file or directory

Command usage:

  • chmod <new permission> <file or directory> - Set permissions of the file or directory
  • chmod -R <new permission> <directory> - Recursively set permissions of the directory and its contents

git init

Initializes a new git repo in the current working directory

Command usage: Literally just git init in the current directory, that's it

git clone

Clones a remote git repo into the current working directory

Command usage:

  • git clone <remote repo url> - Clones a remote git repo into the current working directory

git status

Shows the current local git repo status

Command usage:

  • git status - Shows the current local git repo status

git add

Stages changes to be tracked by git

Command usage:

  • git add . - Stage all changes in the current directory for the next commit

git commit

Commits staged git changes

Command usage:

  • git commit - Commits all staged changes
  • git commit -m "<commit message>" - Commits all staged changes with a commit message
  • git commit -a -S -m "<commit message>" - Commits all changes, signs the commit, and includes a commit message

git pull

Pulls the latest changes from the remote git repo

Command usage:

  • git pull - Pulls the latest changes from the remote git repo

git log

Shows the latest history of changes for the git repo

Command usage:

  • git log - Shows the latest history for the local git repo

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors