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

Login with username, password and session length
Advanced search  

News:

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

tickmike

  • Kitizen
  • ****
  • Posts: 3107
  • Yes Another Penguin !. :)
    • Free Download from.
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 RECOMMEND TRYING / USING PCLinuxOS (www.pclinuxos.com) .
I have a set of 8 fixed IP's From my Eclipse isp.
BT ADSL2 line>HG612 set as a Modem, Bridge, WAN not Bound to LAN1 or 2 >Smoothwall (Hardware Firewall and routing) > Ethernet LAN, DMZ,WiFI LAN and Spare LAN .
DSLstats LAN2  linked Ethernet

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 38883
  • 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
  • Reg Member
  • *
  • Posts: 686
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
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Rick Cook, The Wizardry Compiled

broadstairs

  • Kitizen
  • ****
  • Posts: 2866
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:TalkTalk Connection:FTTC Cab:ECI Router:ZyXEL VMG3925-B10B

burakkucat

  • Global Moderator
  • Senior Kitizen
  • *
  • Posts: 21047
  • Over the Rainbow
    • 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

  • Global Moderator
  • Senior Kitizen
  • *
  • Posts: 21047
  • Over the Rainbow
    • 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

  • Member
  • **
  • Posts: 67
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: 3107
  • Yes Another Penguin !. :)
    • Free Download from.
Re: Terminal Output !.
« Reply #7 on: February 16, 2018, 12:57:54 AM »

Thanks all, interesting  :D
Logged
I RECOMMEND TRYING / USING PCLinuxOS (www.pclinuxos.com) .
I have a set of 8 fixed IP's From my Eclipse isp.
BT ADSL2 line>HG612 set as a Modem, Bridge, WAN not Bound to LAN1 or 2 >Smoothwall (Hardware Firewall and routing) > Ethernet LAN, DMZ,WiFI LAN and Spare LAN .
DSLstats LAN2  linked Ethernet
 

anything