Skip to content

farhad/linux-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

  1. determine which shell software you're using
$ ps $$
  1. change your shell software ( bash, zsh, csh, ... )
$ bash
  1. print the bash version
$ bash --version
  1. print the directory location of bash
$ which bash
  1. print the current user name
$ whoami
  1. print the current computer name
$ hostname
  1. determine if a command or token is recognized by the shell
$ type [token]
  1. read all tokens from stdin and prints them to stdout
$ echo
  1. suppress the automatic new line with echo command
$ echo -n
  1. print the current working directory
$ pwd
  1. print the contents of the current directory
$ ls
  1. print the contents of a relative path within the current directory
$ ls [relative path]
  1. return to the parent directory
$ cd ..
  1. return to the previous directory
$ cd -
  1. return to current user's home screen
$ cd

or

$ cd ~

About

commands to live by

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published