Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Terminal Output !.  (Read 4160 times)

tickmike

  • Kitizen
  • ****
  • Posts: 3640
  • Yes Another Penguin !. :)
Terminal Output !.
« on: February 14, 2018, 11:14:22 AM »

If I put
ls /*
Why is some of the readout flashing ?. :hmm:  in   /sbin
eg   /sbin  udev-add-printer this bit is in red and flashing on and off at one second.
Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43467
  • Penguins CAN fly
    • DSLstats
Re: Terminal Output !.
« Reply #1 on: February 14, 2018, 12:57:16 PM »

I guess it depends how ls is set up on your system. Some distros alias common commands to a preset version of the command. You could try "man ls".

[Edit] Also try "alias" which will tell you if your ls is an aliased version.
« Last Edit: February 14, 2018, 01:00:25 PM by roseway »
Logged
  Eric

jelv

  • Helpful
  • Kitizen
  • *
  • Posts: 2054
Re: Terminal Output !.
« Reply #2 on: February 14, 2018, 04:11:10 PM »

From googling try running this:

Code: [Select]
eval $(echo "no:global default;fi:normal file;di:directory;ln:symbolic link;pi:named pipe;so:socket;do:door;bd:block device;cd:character device;or:orphan symlink;mi:missing file;su:set uid;sg:set gid;tw:sticky other writable;ow:other writable;st:sticky;ex:executable;"|sed -e 's/:/="/g; s/\;/"\n/g') {
 IFS=:
 for i in $LS_COLORS
 do
 echo -e "\e[${i#*=}m$( x=${i%=*}; [ "${!x}" ] && echo "${!x}" || echo "$x" )\e[m"
done
}

Edit: also found this: http://linux-sxs.org/housekeeping/lscolors.html
« Last Edit: February 14, 2018, 04:15:04 PM by jelv »
Logged
Broadband and Line rental: Zen Unlimited Fibre 2, Mobile: Vodaphone
Router: Fritz!Box 7530

broadstairs

  • Kitizen
  • ****
  • Posts: 3697
Re: Terminal Output !.
« Reply #3 on: February 14, 2018, 04:21:59 PM »

Certainly on my openSUSE Tumbleweed system nothing flashes, although the text is all colours of the rainbow  ;)

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Terminal Output !.
« Reply #4 on: February 14, 2018, 05:37:37 PM »

I shall make a guess that the file name, udev-add-printer, in the /sbin/ directory is a broken symbolic link. I.e. the target file, to which udev-add-printer is a symbolic link, does not exist within the file system.
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Terminal Output !.
« Reply #5 on: February 14, 2018, 10:08:20 PM »

Here is an example which, I hope, will show what is happening --

$ cd /tmp
$ > phoo-phile
$ cd ~
$ ln -s /tmp/phoo-phile foo-file
$ ls -l
$ cd /tmp
$ ls -l
$ rm phoo-phile
$ cd ~
$ ls -l
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

petef

  • Reg Member
  • ***
  • Posts: 135
Re: Terminal Output !.
« Reply #6 on: February 15, 2018, 04:12:58 PM »

ls on most systems is an alias to ls --color=auto

You can avoid the alias by quoting.

'ls' /*

The OP's problem is that ls is trying to display different colours for different file types: directories, executables, etc. The escape codes (sometimes known as ANSI codes) are incorrect for the terminal being used. The code being used for, say, green turns out to be the code for blink. The mapping is an enormous tangle involving the LS_COLORS and TERM environment variables and either terminfo or termcap. Let me offer what may be a simple solution, if it works.

export TERM=xterm

« Last Edit: February 15, 2018, 04:22:00 PM by petef »
Logged

tickmike

  • Kitizen
  • ****
  • Posts: 3640
  • Yes Another Penguin !. :)
Re: Terminal Output !.
« Reply #7 on: February 16, 2018, 12:57:54 AM »

Thanks all, interesting  :D
Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.
 

anything