- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Disable the colours that are displayed with a shel...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:32 AM
03-09-2006 03:32 AM
I am still quite new to Linux and too used to HP-UX…
Is it possible to disable the colours that are displayed with a shell when I run a “ls” command (btw what is the meaning of it). The blue is extremely difficult to read…
Any help/suggestion is highly appreciated.
TIA.
Kind Regards,
Rui Vilao.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:51 AM
03-09-2006 03:51 AM
SolutionThe One's in blue represent directory
The green are executable files
If you dont want colors use:
"ls --color=never"
you can also put this is alias file so sas colors are never shown with ls command.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 05:09 AM
03-09-2006 05:09 AM
Re: Disable the colours that are displayed with a shell when I run a “ls” command
You can also change the colors used to pick ones that work better for you. Run 'dircolors --print-database > mycolors'. Edit mycolors and choose colors as described in the comments. Then use ' eval $(dircolors) ' in .bashrc to set LS_COLORS to match your choices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 06:04 PM
03-09-2006 06:04 PM
Re: Disable the colours that are displayed with a shell when I run a “ls” command
using colors you can quickly determine what each listing of the 'ls' command is depending on the color. dark blue is a directory, yellow a link and blinking red is a broken symbolic link etc. (these are just examples, but you get the idea i guess).
you can not do this with the 'normal' ls output, unless you do ll, 'ls -l' or 'ls -p'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 01:19 AM
03-10-2006 01:19 AM
Re: Disable the colours that are displayed with a shell when I run a “ls” command
Take a look at the man page for dir_colors.
It explains all regarding the use of colors with the 'ls' command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 05:28 AM
03-10-2006 05:28 AM
Re: Disable the colours that are displayed with a shell when I run a “ls” command
thanks to all for your replies (I will assign points as soon as I close this thread)...
Just a last question: what about the enabling/disabling of colours within vi editor in Linux?
TIA,
Rui.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 08:31 AM
03-10-2006 08:31 AM
Re: Disable the colours that are displayed with a shell when I run a “ls” command
You can disable the colors in vi/vim/gvim with the use of an RC file in your home directory.
See the example file at /usr/share/vim/vimXX/vim_example.vim, where the XX is your version of vim.
If you are using gvim, then you will want to look at gvim_example.vim.
Hope it helps.
JL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 11:52 AM
03-10-2006 11:52 AM
Re: Disable the colours that are displayed with a shell when I run a “ls” command
:syntax on
:syntax off
You can enable and disable search pattern highlighting with
:set hls
:set nohls
You can change colors used for syntax highlighting with
:colorscheme blue
:colorscheme darkblue
:colorscheme default
:colorscheme delek
:colorscheme desert
:colorscheme elflord
:colorscheme evening
:colorscheme koehler
:colorscheme morning
:colorscheme murphy
:colorscheme pablo
:colorscheme peachpuff
:colorscheme ron
:colorscheme shine
:colorscheme torte
:colorscheme zellner
It is also possible to create new vim colorschemes and syntax as described by
:help highlight