Linux Basic Commands


Commands
  1. BASH Commands (Shell Commands)
  2. Application Commands


  • sbin → System Binary
  • bin → Binary
* To see shell commands, type (help)
** ¦ more → fit the output to screen
Ex: help
¦ more

* To see Shell and Application Commands.
** Login as root and press Tab key Three times.

* How to check commands (Is it Shell or Application command)
** type -a command name
Ex: type -a logout

* How to see details of commands (Shell Description)
** whatis command name
Ex: whatis cal

Long Description
man command name Ex: man cal


Directory Browsing and listing Commands

■ To see the current location of a user
  • Command → pwd (Print Working Directory)
■ To see the contents of current folder
  • Command → ls or tree
■ object color codes (files and folders)
  • White text base files
  • Dark blue folders
  • Green executable file (or any file to copied from Windows to Linux)
  • Purple multimedia files
  • Orange device driver files
  • Red → compressed files
  • Light Blue → short cuts
Object Rename

command → mv
Syntax → mv_current_object name_new object name

Ex: mv folder1 folder2

Moving Objects

command → mv
Syntax
→ mv_object name_new location name
Ex: mv folder1 /home

Deleting Objects

command → rm
Syntax
→ rm_-r_object name
Ex: rm -r folder

0 comments:

Post a Comment