≡ Menu

command syntax

Clear all Linux / UNIX bash shell aliases

Q. How do I clear all UNIX bash shell aliases get cleared in one command. I’ve 20 aliases sometime I just need to delete them in a current session. How do I get rid of all of them?

A. You need to use unalias command/

unalias command syntax

unalias name

To remove alias called foo, enter
$ unalias foo

alias command with no arguments or with the -p option prints the list of aliases:
$ alias

alias ll='ls -lh'
alias ls='ls --color=auto'
alias vi='vim '
alias c='clear'
alias d="/usr/local/bin/chkdomain $@"

Clear all Linux / UNIX bash shell aliases

It will remove NAMEs from the list of defined aliases. If the -a option is given, then remove all alias definitions.
$ unalias -a

Ubuntu Linux Vim Sorry, the command is not available in this version: syntax on

Q. I am using vim under Ubuntu Linux and whenever I type following command:
syntax on

I’m getting an error which read as follows:
E319: Sorry, the command is not available in this version: syntax on

How do I fix this problem?
[click to continue…]

Linux / UNIX source Command Examples

How do I use source command under UNIX / Linux / BSD / OS X operating systems?
[click to continue…]

Turn On or Off Color Syntax Highlighting In vi or vim Editor

How do I turn on or off color syntax highlighting in vi or vim text editor on a Linux or Unix-like operating system?
[click to continue…]

BASH Shell: Change The Color of My Shell Prompt Under Linux or UNIX

How do I change the color of my shell prompt under Linux or Unix operating systems?
[click to continue…]

Linux / UNIX: Delete a file

How do I delete a file under Linux / UNIX / BSD / AIX / HP-UX operating system using command line options?
[click to continue…]