NWP lab2 Flashcards
finger
Used to display information about local and remote users. (Similar to who)
ifconfig –a:
Displays the status of all interfaces, even those that are down. (show ip address)
kill -9 2168
The kill command is used to terminate processes without having to log out or reboot (restart) the computer. 2168 is the PID of the process.
the difference between bash and ksh (korn shell)
Bash is the standard shell for common users (linux) while korn shell is a Unix shell.
ksh
Used to change execution method to ksh
how to exit ksh
Used to exit ksh
Scripts
Scripts are collections of commands that are stored in a file. The shell can read this file and act on the commands as if they were typed at the keyboard.
vi test.sh
Short for visual text editor. Create test.sh (script) file, it is an interactive text editor. The screen acts as a window.
To execute vi test.sh
Go to ls –l (you must change the permission of the file using chmod command) ls-l (notice how the coloe changed) >./test.sh (to execute) >:q (to exit text editor)
Used to display information about local and remote users. (Similar to who)
finger
Displays the status of all interfaces, even those that are down. (show ip address)
ifconfig –a:
The kill command is used to terminate processes without having to log out or reboot (restart) the computer. 2168 is the PID of the process.
kill -9 2168
Bash is the standard shell for common users (linux) while korn shell is a Unix shell.
the difference between bash and ksh (korn shell)
Used to change execution method to ksh
ksh
Used to exit ksh
how to exit ksh