A command line is a text-based interface which can be used to input to a system. Linux command line is provided by a program called the shell.
When you open shell prompt the default prompt ends with a $ character.
[redhat@desktop -]$
redhat - user name, $ is represent that user is not a root. The $ is replaced by # if the shell is running as the superuser root. that some thing helps to avoid accidents and mistakes in privileged account.
[ root@desktop -]#
============================================
NOTE
Bash is similar in concept to the command line versions of Microsoft Windows cmd.exe
============================================
Virtual consoles
When we click
ctrl + alt + f1
then open GUI with terminal (windows terminal) and,
ctrl + alt + f2
then open virtual terminal. and we are open 6 terminal by using functions key
Shell basics
Command entered at the shell prompt have three basic parts:
- Command to run
- Options to adjust the behavior of the command
- Arguments which are typing targets of the command
eg.;-
usermod -L rahul
usermod - command
-L - options
rahul - argument
COMMANDS
# ctrl + alt + l (logout)
# shutdown
# halt (this 3 commands is use for shutdown system)
# init 0
# poweroff -f
# shutdown -h <time in minutes>
# date
# date +%R
# date +%x
# passwd (If change password)
# history
No comments:
Post a Comment