Joke Collection Website - Blessing messages - linux command color set linux command color

linux command color set linux command color

How to change the Linux terminal display color?

securecrt sets color and displays Chinese

Set options-sessionoptions-emulation, then change the terminal type to xterm, and click the ansicolor check box.

Font settings: options-sessionoptions-appearance-font and then change it to the font you want.

Note: 1: Select utf8 for the character set, which can avoid displaying garbled Chinese characters

2: When selecting a font, you need to select a turetype font (such as New Song Dynasty), otherwise it will appear Chinese characters are garbled

3: Increase the scrollbackbuffer (5000) so that you can see the previously displayed content, which is much more convenient

4: Select xtem in the terminal so that you can ssh to the server To display the color, check the ansicolor checkbox

5: The color scheme I chose is windows or traditional.

Use securecrt (linux) to upload and download data

Just set the default directory for uploading and downloading

The uploading and downloading directories can be set under options_sessionoptions_filetransfer

For the rest, you only need to use securecrt to log in to the Linux terminal:

Send the file to the Windows client: szfile1file2

zmodem reception can be started by itself.

p>

Upload files from the client to the Linux server:

As long as the server executes: rz(rz-y)

Then select the file to send in securecrt, protocol zmodem

Simple, if you have been using ssh before and have not opened the ftp service to the outside world, you can directly use this method to transfer your files

Copied in the help of securecrt :zmodemisafull-duplexfiletransferprotocolthatsupportsfastdata

transferratesandeffectiveerrordetection.zmodemisveryuser

friendly, allowingeitherthesendingorreceivingpartytoinitiatea

filetransfer.zmodemsupportsmultiplefile(batch)transfers, and

allowstheuseofwildcardswhenspecifyingfilenames.zmodemalso

supportsresumingmostpriorzmodemfiletransferattempts.

rz, sz is the command line tool for zmodem file transfer between linux/unix and windows

ps: rz/sz on linux Just install lrzsz-x.x.xx.rpm for the two small tools. For Unix, you can use the source code to compile it yourself. For SolarisSpac, you can download the execution code from sunfreeware

c How to change the text color and size?

There is no standard library to do these things. It depends on the development environment you are using. For tc, it is the conio.htextcolor function vc. Refer to ls. Under Linux, add the color information directly to printf. Refer to the Linux terminal color coding printf (033 [31mThecolorofthislineisred!033[0m);

How to change Linux green files to blue?

Blue represents a directory; green represents an executable file; red represents a compressed file; light blue represents a linked file; gray represents other files; red flashing represents a problem with the linked file; yellow represents a device file. Including block, char, fifo. Use dircolors-p to see the default color settings, including various colors and "bold", underline, blinking and other definitions. If you need to change the system default color, you can use the following method: #vi/etc/DIR_COLORS and then find the item you want to modify in the file. If you want to change the directory color, you can change DIR01;34 to "DIR01 ;37;44", 37 is the white font, and 44 is the blue background. After editing is completed, save and exit. Then, execute #eval`dircolors/etc/DIR_COLORS`. Note that the ` symbol in the command is the one under the ~ symbol on the keyboard. Don’t make a mistake.

What files do the three colors displayed by the ls-l command in Linux represent?

LS has more than 3 output colors, including the following, white: indicates ordinary files, blue: indicates directories, green: indicates executable files, red: indicates compressed files, light blue: linked files, red flashing: Indicates there is a problem with the linked file. Yellow: Indicates device files. Gray: Indicates other files. This is the default color agreed by the Linux system. You can also modify it according to your own preferences by modifying the environment variable $LS_COLORS. If you want to save it permanently, just ~/. The default value changed in bashrc is: echo$LS_COLORSrs=0: di=01; 34: ln=01; 36: mh=00: pi=40; 33: so=01; 35: do=01; 35: bd=40 ;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42 :st=37; 44: ex=01; 32: *.tar=01; 31: *.tgz=01; 31: *.arj=01; 31: *.taz=01; 31: *.lzh=01 ; 31: *.lzma=01; 31: *.tlz=01; 31: *.txz=01; 31: *.zip=01; 31: *.z=01; 31: *.Z=01; 31 :*.dz=01; 31: *.gz=01; 31: *.lz=01; 31: *.xz=01; 31: *.bz2=01; 31: *.bz=01; 31: * .tbz=01; 31: *.tbz2=01; 31: *.tz=01; 31: *.deb=01; 31: *.rpm=01; 31: *.jar=01; 31: *.rar =01; 31: *.ace=01; 31: *.zoo=01; 31: *.cpio=01; 31: *.7z=01; 31: *.rz=01; 31: *.jpg=01 ; 35: *.jpeg=01; 35: *.gif=01; 35: *.bmp=01; 35: *.pbm=01; 35: *.pgm=01; 35: *.ppm=01; 35 :*.tga=01; 35: *.xbm=01; 35: *.xpm=01; 35: *.tif=01; 35: *.tiff=01; 35: *.png=01; 35: * .svg=01; 35: *.svgz=01; 35: *.mng=01; 35: *.pcx=01; 35: *.mov=01; 35: *.mpg=01; 35: *.mpeg =01; 35: *.m2v=01; 35: *.mkv=01; 35: *.ogm=01; 35: *.mp4=01; 35: *.m4v=01; 35: *.mp4v=01 ;35: *.vob=01; 35: *.qt=01; 35: *.nuv=01; 35: *.wmv=01; 35: *.asf=01; 35: *.rm=01; 35 :*.rmvb=01; 35: *.flc=01; 35: *.avi=01; 35: *.fli=01; 35: *.flv=01; 35: *.gl=01; 35: * .dl=01; 35: *.xcf=01; 35: *.xwd=01; 35: *.yuv=01; 35: *.cgm=01; 35: *.emf=01; 35: *.axv =01; 35: *.anx=01; 35: *.ogv=01; 35: *.ogx=01; 35: *.aac=00; 36: *.au=00; 36: *.flac=00 ;36: *.mid=00; 36: *.midi=00; 36: *.mka=00; 36: *.mp3=00; 36: *.mpc=00; 36: *.ogg=

00; 36: *.ra=00; 36: *.wav=00; 36: *.axa=00; 36: *.oga=00; 36: *.spx=00; 36: *.xspf=00; 36: Before the semicolon is the background color of the characters, and after the semicolon is the color of the characters

Crt warning color?

If a crt warning color appears on the phone screen, follow the steps below:

1. Restart the phone and carefully observe whether the screen color returns to normal after startup.

2. Try changing the phone wallpaper and observe whether the screen color returns to normal.

3. Check the system settings. If the screen still changes color after restarting the phone and it is not a normal color, check the system-related color settings. Find Settings on the mobile phone desktop, enter Accessibility, if there is a category, select Vision, find Negative Color in Vision, and see if this item is checked. Under normal circumstances, it should not be checked. The colors of mobile phone screens are composed of the three primary colors of red, green and blue, which are orthochromatic colors. Negative color, which is based on positive color and filters white light, is usually used for printing. Check whether the negative color function is turned on, turn it off and then restart the phone to check.

4. Display cable The display cable is the video signal transmission line between the motherboard display IC and the display screen. If the display cable is soldered or loose, it will also cause the mobile phone screen to become discolored or have vertical lines.

5. Back up data (contacts, text messages, photos, etc.) and restore factory settings.

6. The problem still exists. It is recommended to take the mobile phone to the local after-sales service center for testing.