Skip to content

AnirudhaRamesh/Linux-Shell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUNNING

  • run "make"

  • execute by using "./myShell"

  • type "quit" to exit the shell

FEATURES

ls command

Usage:
  • ls takes arguments as flags (in the form -(flagname)) and directories (in the form -(directory name)) in any order.
  • It lists the files of all the directories mentioned, in the form of option selected by the flags.
  • If there is no directory mentioned, it lists the files of current directory
  • "ls" - lists in alphabetical order
  • "ls -a" - display hidden files
  • "ls -l" - long list
  • "ls -al"/"ls -la"/"ls -l -a"/"ls -a -l" - long list including hidden files
  • Similarities to real command: "ls -a" displays files sorted in alphabetical order (NOT CONSIDERING THE PREPENDED '.')

cd command

  • "cd (absolute path)" - goes to absolute path
  • "cd" - goes to ~/
  • "cd ~/(pathname)" - goes to ~/(pathname)
  • "cd .." - goes to previous directory
  • "cd ." - goes to same directory

echo command

  • "echo" - prints empty line
  • "echo text" - prints "text"
  • "echo 'text' " - prints "text"
  • "echo $var" - prints value of linux environment variable "var"

pwd command

  • "pwd" - prints absolute path of present working directory

pinfo command

  • "pinfo" : prints the process related info of the shell program
  • "pinfo " : prints the process info about given pid
  • pid --
  • Process status -- {R/S/S+/Z}
  • Memory
  • Executable path -- (Absolute path - includes ~/ if executable is present inside the shell directory)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.5%
  • C++ 2.8%
  • Makefile 1.7%