Unix Commands Shortcut Keys | Unix Command Line Keyboard Shortcuts
Unix Commands mostly use shortcut keys from keyboard in command line. Unix command line keyboard shortcuts are given below.
- Changing the Password in Unix: passwd
- Who are the concurrent Users in Unix: who
- Who is the User in Unix: who am i
- Knowing the Terminal name: tty
- Knowing the Shell in Unix: echo $SHELL
- Knowing the Terminal type in Unix: echo $TERM
- Knowing the list of System variables in Unix: set
- Logging Out in Unix: Ctrl+d/ logout/ exit
- Deleting entered Commands in Unix: Backspace/Ctrl+h/Delete
- Interrupting a command which waits for User input in Unix: Ctrl+d
- Interrupting a program which doesn’t wait for User input in Unix: Ctrl+c/Delete
- Killing a line in Unix: Ctrl+u
- Suspending a job in Unix: Ctrl+z
- Resuming a Suspended job in Unix: fg
- Halting the Output temporarily in Unix: Ctrl+s
- Resuming Scrolling / Halting in Unix:Ctrl+q
- Alternative of Enter key in Unix:Ctrl+j/Ctrl+m
- Terminal behaving in Erratic manner in Unix:stty sane
- Coming out from a program that features its own prompt in Unix q/quit/exit/Ctrl+d
- Killing running command and creating a core file containing the memory image of the program in Unix: Ctrl+\
- Creating a Directory in Unix: mkdir docs
- Listing Files and Directories in Unix: ls
- Knowing the path of the Current Directory in Unix: pwd
- Navigating to a Directory in Unix: cd docs
- Creating Files in a Directory and saving the File in Unix: echo Message > file1
- Viewing the Details of the File in Unix: cat file1
- Counting Lines, Words and Characters in Unix: wc file1
- Counting only the number of Lines in Unix: wc -l file1
- Checking the File Attributes in Unix: ls -l
- Knowing the list of Directories where the system will search for a issuing command in Unix: echo $PATH
- Knowing the Location of a Command in Unix: type ls/whence ls/which ls
- Sorting the files according to the Time of Modification in Unix: ls -l -t
- Viewing the Hidden files in Unix: ls -l -a
- Taking back up of all files in the current directory to a floppy in Unix: tar -cv -f /dev/fd0 -b 18 *
- Combining Commands in Unix: ( cat file1; cat file2) > file3
- Knowing the Version or Name of a machine in Unix: uname -r
- Locking the Terminal in Unix: lock
- Recording Session in Unix: script
- Viewing the Recorded session in Unix: cat typescript
- Viewing the System date date in Unix:
- Viewing the current month in Unix: date +%m
- Viewing the current month name in Unix: date +%h
- Viewing the current month and month name in Unix: date +”%h%m”
- Viewing the current day in Unix: date +%d
- Viewing the current year in Unix: date +%y
- Viewing the current hour in Unix: date +%H
- Viewing the current minute in Unix: date +%M
- Viewing the current second in Unix: date +%S
- Viewing the Calender in Unix: cal
- Using calculator in Unix: bc
- Opening vi editor in Unix: vi (file name)
- Saves file and remains in editing mode in Unix: :w
- Saves file and quits editing mode in Unix: :x
- Saves file and quits editing mode in Unix: :wq
- Quits editing mode when no changes are made to file in Unix: :q
- Quits editing mode but after abandoning changes in Unix: :q!
- Saves to file F1 in Unix: :w F1
- Saves to file F1 but overwrites the existing file in Unix: :w! F1
- Appends current file contents to F2 in Unix: :w >> F2