- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: disable colour in linux terminal
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
Discussions
Discussions
Forums
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
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
тАО04-27-2007 04:06 PM
тАО04-27-2007 04:06 PM
disable colour in linux terminal
regards
Baiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2007 07:05 PM
тАО04-27-2007 07:05 PM
Re: disable colour in linux terminal
----
To avoid the colouring in a single command:
use "/bin/ls" instead of just "ls", or use "ls --color=none".
----
To disable the colouring for the current session only, depending on which shell you're using and how it is configured, one of the following commands should work:
unalias ls
unset ls
The first command will remove a shell alias named "ls", the second will remove a shell function named "ls".
----
If you want to disable the colouring completely for the user(s) for all future sessions, examine the start-up scripts of the shell you're using.
For the Linux standard shell "bash", see /etc/profile, /etc/bashrc (or /etc/bash.bashrc as some distributions use a different name) and /etc/profile.d directory if it exists. Usually there is a function like this defined somewhere:
function ls()
{
/bin/ls -FN --color=auto "$@"
}
Comment this function out to remove the colouring permanently.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2007 07:08 PM
тАО04-27-2007 07:08 PM
Re: disable colour in linux terminal
For one command:
# ls --color=none
To just disable it alltogether, remove the alias for ls:
# unalias ls
Hope that helps,
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2007 11:34 AM
тАО04-28-2007 11:34 AM
Re: disable colour in linux terminal
export TERM=linux-m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2007 02:09 AM
тАО04-30-2007 02:09 AM
Re: disable colour in linux terminal
If you want to disable color for a given user, then in that user's home directory, edit or create a file named '.dircolors' or '.dir_colors', and make sure there is a line that reads, 'COLOR none'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 07:08 PM
тАО05-03-2007 07:08 PM