General :: What Do Various Colors In Results Of Bash Ls Signify?

Jan 12, 2011

I am at the moment using Ubuntu 10.10 with the default color scheme. If I open a bash terminal and type ls -l / I get the results with most information in white on the standard purple background, most directory names in blue on the normal background, tmp in blue on a green background, a file name in white on the normal background and links in teal on the normal background.

So in this situation I am wanting to figure out what the green background behind tmp signifies. I have searched for information about bash color codes and I find hundreds of links regarding how the CHANGE the colors. I have yet to find one which explains what the colors mean.

View 3 Replies


ADVERTISEMENT

General :: Linux CLI Through Putty / Do Colors Signify Anything?

Jan 14, 2010

When I connect to a RHEL CLI via Putty, some folders are blue, some are highlighted green, etc etc.Does all that signify something? Is there a link to a site that tells me what it all means?

View 9 Replies View Related

General :: Bash Watch Command With Colors Preserved?

Mar 29, 2010

From man watch: Non-printing characters are stripped from program output. Use "cat -v" as part of the command pipeline if you want to see them. So how do I use cat -v if I want to see the colored output from:watch ls -al --color

View 3 Replies View Related

General :: SU Results In Cannot Execute Bash

Feb 13, 2011

SU results in Cannot execute bash: No such file or directory.

View 1 Replies View Related

Ubuntu :: Bash - Open Mlocate Search Results?

Mar 22, 2011

Upon a while of searching, I think I failed to find the correct terms and I'm posting here. I often use mlocate to search for files. For example, if I say

Code:

$ mlocate temp_2.pdf

I'll get two results:

Code:

/home/kmc/Documents/latex/temp_2.pdf
/home/kmc/Documents/latex/test/temp_2.pdf

Now if I want to open one of them, I'll have to either open Acroread and browse to their locations. Or select and copy, and call acroread in terminal like

Code:

$ acroread /home/kmc/Documents/latex/temp_2.pdf

This is tedious to me. I'm thinking of a way of quickly open its search results, I've tried pipes like this but it doesn't work:

Code:

$ mlocate temp_2.pdf | acroread

maybe it doesn't work this way. So what does the trick? What's the name of this trick? I've googled for

Quote:

Linux bash catch output, pipe output, open mlocate results And is it possible to handle multiple lines of output, e.g., can I choose which line of output get forwarded to relative programs?

View 9 Replies View Related

Programming :: Looping Over Mysql Query Results In Bash?

Sep 15, 2010

I am querying a single string column in a table. The string values have spaces in them. I want to loop over each value in bash. I set IFS to split lists on newlines instead of spaces. When I try this, it is splitting the list of results on the actual character 'n', not the newline ''.

DATA=`mysql -u root -ppassword --silent 'SELECT name FROM table_a;'`
IFS=$'
'
for i in $DATA; do
echo "item = $i"

[Code]....

View 5 Replies View Related

Programming :: Bash : Searching For Info And Changing The Color Of Keywords In The Results?

May 5, 2011

(bare with me as I am sort of new with scripting) I am trying to figure out how to run a script that does a basic chkconfig and to get only those services that are running, but changing the color of "on" to red in my output file. Here is what I am working with so far:

Quote:

#/bin/bash
RED=$(tput setaf 1)
BLK=$(tput setaf 0)

[code]....

*I had to substitute a "-" and <colon_symbol> for ":" in front of the on's, because the forum thought they were smiley faces (i.e. n) how to make the "on" to be red while the rest of everything remains in black text. I have been trying to read up on sed and awk, but it is still pretty much a mystery to me right now. There will be other things in the output file that I wouldn't want a rogue "on" to be in red, so just the instances of "on" in that one chkconfig return.

View 4 Replies View Related

General :: Saving The Results Of The Time Command While Discarding The Results Of The Command Being Timed

Apr 6, 2010

I'm timing how long it takes to run a command foo. I'm looking to append the results from the time command to a file, and discard the results from the foo command. I tried the following, but it didn't do what I want:

$ time ./foo > /dev/null >> output_from_time_command.txt

View 1 Replies View Related

Programming :: Creates Dots To Signify Time Passing?

Aug 21, 2010

This script works well but is there a better/shorter way of doing this?This creates dots to signify time passing. It will be used in a larger script.

Code:
D=".."
printf "$D

[code]...

View 6 Replies View Related

Programming :: Running More Than One Script In A Bash Script And Piping Results To SSH?

Jun 8, 2010

how to set the subject of this up.. but here is what I am trying to accomplish (please keep in mine, this is only my first month playing with ANY Linux programming): My shared web host limits running 2 CRONS or 2 SSH sessions at one time. I need to run more than that.. So, my solution is to run what I need on my home computer, and then push all the results via SSH to my web server.

To keep things timed, I am trying to call 4 bash scripts from inside of 1 bash script... Each bash script has variables I need to export out to the remote (web) server. Being that I can only run 2 SSH or 2 CRON sessions on the remote, it wouldn't do me any good to open up CRON or SSH remotely or locally - either way I'm maxing out. That is why I would like to call 1 final script that takes the output of the 4 bash scripts and does the job.

Main bash calls via CRON every 30 minutes:

Code: ./script_1 &
./script_2 &
./script_3 &
./script_4 &

[code]....

I need to scp the file saved by wget to the remote server. I also need to pass the SQL statement generated in each script as a command in SSH. I'm lost how to get the info from "script_x" into a string that can be used to SSH - and doing this all inside of ONE SSH command. Would I store the SQL strings in a file and call that in the SSH command line?

If so, what is the command to make sure the variable output in the "script_#" file is sent to a file? Can I call the variable from the main Bash Script? Now - the good news is, I can SSH from my local machine to the remote one.That is about as far as I got.Again - I am so new to this that my ears are still wet. This has been something I have been working on for a while, and I'm just lost at this point.

View 2 Replies View Related

Ubuntu Servers :: Bash In 10.04 Server - Every Empty Line In The Script Results In "command Not Found"

Oct 8, 2010

Bash acts weird in 10.04 server. Whenever I try to run .sh scripts, every empty line in the script results in "command not found". Then on even simple scripts I get syntax errors, but the same exact scripts work on my 9.10 desktop installation. There's also another problem, I'm not really sure if it's bash-related. After setting the proxy using

[Code]...

View 5 Replies View Related

Software :: Configure Xterm Colors If Xterm Can Support 256 Colors?

Jul 3, 2009

I have a xterm which can have 256 colors. How can I configure the prompt colors and ls output colors to take advantages of the 256 color values?

View 4 Replies View Related

General :: Get Colors In Terminal?

Mar 8, 2010

I am connecting to a remote suse 10.0 machine, and I do not get colors on the terminal, while I get them when I connect to a remote Ubuntu machine.

How can I do to get colors on the suse terminal?

View 4 Replies View Related

General :: Get Colors In 'less'' Command?

Mar 9, 2010

when I read a file in Linux with the command 'less' or 'more', how can I get the content in colors?

View 5 Replies View Related

General :: Monitor Colors Too Bright

Oct 13, 2010

I installed memory card now monitor colors has been adjused to light blue and white. Tried control panel in personification to chg color but I think the color is off due to ATI graphic card radeon xpress 200.

View 2 Replies View Related

General :: VNC Viewer Screen Colors Are Off?

Jun 27, 2011

I'm running a VNC server along with a local VNC viewer on the same RHEL5 box. The colors for my GUI components look O.K. in the VNC viewer, but a map that the viewer displays is messed up. The color of the map is too blue. My system is using X11 protocol. I'm a newbie when it comes to Linux.

View 2 Replies View Related

General :: Colors - Apply ICC Profile To Whole Desktop?

Apr 15, 2011

I have a monitor with oversaturated red (HP LP2475w). I am able to apply ICC profile to various apps like GIMP and Firefox and Gnome. But I'd like to apply it to everything - because e.g. Flash animations in Firefox are rendered by Flash and don't use ICC. So, can I apply it to whole X?

View 2 Replies View Related

General :: Second Monitor Weird Colors Unbuntu

Sep 16, 2010

at first with a single boot system(ubuntu) everything were fine with everything include second monitor ,then i installed vista too,now i have a dual boot system & i am very happy to get rid of crappy junk microsoft's software as much as i can,unbuntu performance is really wonderful to me,just i have one problem,my second monitor show very weird colors ,almost like a negative print,then i boot with vista & there everything are fine with my second monitor,then i guess i don't have any hardware or driver problem,any help or suggestion?I changed my visual setting from extra to non,in case if this problem is because of not enough memory or els,but iy didn't work. my loptop is a vaio vgn,4 gb ram,intel centrino 2- 2.66 ghz-ati radeon graphic card.

View 2 Replies View Related

General :: ThinIce Theme Colors Configuring?

May 13, 2011

I'm trying to change the color of textfield's background in this config:

Code:
# Edit these colors and fonts however you like.
style "default"
{
GtkOptionMenu::indicator_spacing = { 3, 2, 1, 1 }
GtkEntry::progress-border = { 1, 1, 1, 1 }
GtkRange::slider_width = 11
GtkRange::stepper_size = 11

[Code]...

View 1 Replies View Related

General :: Setting Custom LS Colors In Xterm?

Jul 17, 2011

I'm having difficulty setting custom ls colors in xterm. If I understand it right one can edit the system-wide file located in /etc/DIR_COLORS to modify every terminal or customize xterm; I chose xterm mostly because the other terminals I never use. Here is my .bash_profile and .bashrc respectively:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi

if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi

alias ls='ls --color -F'
PS1='[e[1;32m][u@h:w]$[e[0m] '

When I use the login shell, the colors are different than xterm in that they are not as bright; furthermore, I marked out bold fonts in .Xresources:
!xterm colors
xterm*foreground: #d3d3d3
xterm*background: #000000
xterm*boldColors: false
xterm*cursorBlink: true
xterm*cursorColor: white
xterm*loginShell: false
xterm*faceName: Liberation Mono
xterm*faceSize: 10

So, there must be a file around somewhere that is changing the colors between the interactive and login shells. Also,
man xterm:
color6 (class Color6)
color7 (class Color7)

These specify the colors for the ISO-6429 extension. The defaults are, respectively, black, red3, green3, yellow3, a customizable dark blue, magenta3, cyan3 and gray90. The default shades of color are chosen to allow the colors 8-15 to be used as brighter versions. How does that get anyone anywhere with setting the color? It doesn't say what color (class) is assigned to which file specifically, thus adhering to the distribution-wide color codes. Perhaps I am making this more difficult than it should be.

View 4 Replies View Related

General :: Different Results In Du And Df?

Oct 29, 2010

I was checking /opt and then found something unusual. Below are the results of du and df -h,

Code:
$sudo du -h /opt/|tail -3
1.1G /opt/IBM

[code]....

View 2 Replies View Related

General :: Get Putty To Support 256 Colors In Emacs On CentOS?

Jan 21, 2011

As far as I can tell from browsing around, I should be getting 256 colors in my Emacs, but I'm not. I'm running CentOS 5.4 on an ec2 instance. I'm running Putty 0.60 on Windows 7. Putty is set to send xterm-256color for its terminal string. Putty is set to allow 256 colors. On CentOS, my $TERM is set to xterm-256color.

tput colors shows 256. I recompiled Emacs to 23.2, making sure to install libtermcap-devel beforehand, because someone claimed they needed that. But still, when I M-x list-colors-display in Emacs, it only shows 8 colors.

View 1 Replies View Related

General :: Wrong Monitor Resolution Set And Now Screen With Many Colors

Jul 25, 2010

I am new to Linux (Ubuntu 10.4 LTS on a Thinkpad T40), now just two days, and had everything working nicely. But since I wanted a better higher resolution I tried to set the monitor resolution to a higher value. After selecting a higher resolution first the screen went black and now it has a white background and is steady but has flickering areas. The system is still working. How can I go back to the resolution that was working?

View 2 Replies View Related

General :: Different Results From Vmstat And Ps?

Jun 24, 2010

I am trying to determine CPU usage on a radio controller running Linux. We have a script that another member of my work wrote using vmstat which I could not get any consistant results from. So, in an effort to understand what was going on I wrote a script using ps. Sadley after running several tests using both scripts, they do no match up at all, vmstat always gives me a much higher value. However, if I simply run the commands at any given time they do match up, therefore I believe that there is an error in one of the scripts. I am very new to linux and so Here is the vmstat script:

#!/bin/bash
declare -i total
declare -i tries

[code]....

View 11 Replies View Related

General :: Redefine The Way ANSI Colors Are Shown In A Terminal Emulator?

Jun 8, 2011

I'd like to redefine the actual colors that ANSI escape sequences show, i.e. I'd like to personalize what "light red" means and render it as, say, orange. Is there any terminal emulator that works under linux that allows me to do this? how?

View 1 Replies View Related

General :: 64 Bit - Different Commands Shows Different Results?

Jul 10, 2010

The system of my VPS is centos 5. I want to know if it is 32bit or 64bit. > uname -a Thu May 13 13:49:53 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

looks like 64 bit.
But
> getconf WORD_BIT
32
Looks like 32 bit.
Which is correct?

I believe the linux of my VPS is 32 bit. Because I downloaded a 64bit mongodb, found it can't start. And when I downloaded a 32bit instead, it works well.

View 3 Replies View Related

General :: When Using Grep From VIM, How To Jump To Results

Feb 22, 2011

When using the grep plugin to VIM, I can search the current directory for all occurrences of a string within a set of files, like this::grep Ryan *.txtThis outputs something like this:

file1.txt:3:Ryan was here
file2.txt:10:Ryan likes VIM
file3.txt:5:superuser.com is a fav of Ryan

[code]....

View 1 Replies View Related

General :: Why Does `du` Not Show Results For All Files

May 22, 2011

I (for curiosity's sake) am running du -a inside /usr/lib/git-core and it does not show results for all the files in that directory. Why does it leave out an arbitrary set of files?this is what cd /usr/lib/git-core; du -a returns:

4 ./git-merge-resolve
972 ./git-config
12 ./git-show-index

[code]....

View 1 Replies View Related

Ubuntu :: General, How To Exec On Ls Results?

Feb 10, 2010

Find a file and need to do something to it, think there must be a single line solution for:

$ ls *.c
$ cat *.c

View 1 Replies View Related

General :: Having Only One Instance Of Search Results?

Oct 6, 2010

having only one instance of my search results

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved