SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm using slack 9.1. I usually use gnome 2.4 as my window manager. In the gnome-terminal, when I do "ls", the dirs and files are not color coded. But I can see the colors in the other terminals (CTRL+ALT+F1 and all).
So I did a little research and found that I have to add the line alias ls='ls --color=tty' in the .bashrc file in my home directory. But there is no such file. Further searching revealed that there IS no .bashrc in slack. So I had to edit the /etc/profile file instead. I added the line there, but it makes no difference. Now I'm stuck!!
btw.."ls --color=always" works, but I want the colors to come by default. Can anyone help??
if your ~/.bashrc does not exist than create it. But in slackware ls color is the default, I guess you would call your gnome-terminal with the good switch,
for kde Konsole and xterm the switch is : -ls
try gnome-terminal -ls and see if it works
er...no idea actually!! I just read it on some forum Whats imp for me is that it works. But given it a thought, probably "tty" coz then it uses the default settings of all the terminals, and slackware by default HAS colors in the terminal (in the text-mode runlevel that is)
Originally posted by akudewan er...no idea actually!! I just read it on some forum Whats imp for me is that it works. But given it a thought, probably "tty" coz then it uses the default settings of all the terminals, and slackware by default HAS colors in the terminal (in the text-mode runlevel that is)
If anyone knows, post it here
You could even add your alias's to your /etc/profile (if using bash/etc -Bourne shells) so it will be system wide-ie: effect all users
I have the strange condition of bash not recognizing my .bashrc but it does recognize the .bash_login. I think this is the way it was compiled...(Slack 9.1 default?) hmmm
as I said it is just a switch to add to start the gnome-terminal.
Exemple : from fluxbox (in X so...), I start xterm in a terminal with no option...when I 'ls' in the terminal, it has no colors...BUT when I start xterm like : 'xterm -ls' and then I 'ls', it has color, the same with the Konsole terminal gui from kde (-ls).