Thanks, Scott. Adding the alias to the .bashrc file worked. And thanks
for telling how to write the results of a command to a file. That should
come in handy sometime.
Stan
On 6/26/2018 2:22 PM, Scott scottro@nyc.rr.com [LINUX_Newbies] wrote:
> On Tue, Jun 26, 2018 at 12:38:11PM -0700, Stan Gorodenski stanlep@commspeed.net [LINUX_Newbies] wrote:
>
>> Thanks Joan, Bruce, Scott, and Ken. ls --color and ls -a --color works,
>> but I have to enter --color all the time. I guess some kind of change I
>> did not want occurred in a file. I will probably have to find it and set
>> it back to what it was using nano.
>>
> You can make your own .bashrc do the alias
>
> In $HOME you should have a file .bashrc with a dot in front of it, That
> means it's a hidden file.
>
> In it put
> alias ls='ls --color'
>
> Then type
>
> source .bashrc
>
>
>> I assume pipe works in other commands, such as cl, besides ls. I had run
>> a cl command and it came up with more than a page full of messages and I
>> wanted to see the beginning.
>>
> Piping works with any command.
>
> You can also usually redirect something to a file to look at later. For
> example ls> list.txt
>
>
>
Posted by: Stan Gorodenski <stanlep@commspeed.net>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (8) |
No comments:
Post a Comment