Skip to content

Namrajp/cli-fundamentals

Repository files navigation

cli-fundamentals

💻 command line is fun. 👍 cli fundamentals is fun to learn. Here in code.

Difference between Terminal and bash

Terminal is a user interface for typing commands. Bash is the program for running commands stored in the different paths.

pwd outputs present working directory, whoami prints current user.

touch create an new file. cp copies a file ex. cp first.txt second.txt -r flag is used to copy directory. mv renames or moves a file ex. cp first.txt second.txt mkdir makes a directory cd changes directory. rm removes a files. rm -rf some-dir removes a directory. More Information

Help is verywhere whether it is stackoverflow or stackexchange or youtube. In docs it can be /Usr/share/docs/ and man and info pages are other sources of help. More Information

Permission can enable or disable a user to open or read a file. If a file has no execute permission, it can not be run using $ ./file-name.txt. And if a folder has no permission of write, it can not be opened. Users on a system can be three types, owner, group which is member of group, or other. chown and chgrp are used to change group and owner.Root is member of sudo or wheel. More Information

Environment variables are group of system settings.$ echo $PATH shows path of programs like ls command. More Information

Used for finding files and folders, starts with find Path Expression, Expression can be wildcard exp or Regex exp E More Information

Used For finding strings in a single or multiple text files, also finds files in folders for a string value. Used with pipes,ps,cat, and ls etc. More Information

More Information

System Information

More Information

More Information

Used for writing docs on the web, sometimes html file is written in markdown. More Information

Releases

No releases published

Sponsor this project

Packages

No packages published