Por que o VI tem sintaxe colorida como usuário normal e como usuário root não?

OK, é uma dica bem básica mas que deixa muitos iniciantes quebrando a cabeça…

Você abre o Vi como usuário normal e o texto é exibido colorido, de acordo com a sintaxe do arquivo (SQL, C, etc.); mas quando você abre o mesmo arquivo como usuário root, o texto é exibido sem cor nenhuma. Por que isso ocorre?

Na maioria das vezes seu sistema tem 2 versões do Vi instalado: a versão original, básica, o Vi, e a versão melhorada, o Vim (Vi IMproved).

Geralmente o usuário root utiliza a versão Vi (que fica em /bin/vi) e o usuário normal utiliza a versão Vim (que fica em /usr/bin/vim).

Para ter certeza disso, execute o seguinte comando “which vi” como usuário normal e como usuário root:

[root@dbserver ~]# which vi
/bin/vi

[abrantesasf@dbserver ~]$ which vi
alias vi='vim'
 /usr/bin/vim

Como você pode ver, o usuário root utiliza o Vi (em /bin/vi) e o usuário normal utiliza o Vim (em /usr/bin/vim) através de um alias. Para fazer o usuário root usar o Vim, basta criar um alias editando o arquivo .bashrc no diretório home do usuário root e acrescentar a seguinte linha:

alias vi='/usr/bin/vim'

Agora o usuário root também usará o Vim e terá a sintaxe colorida nos arquivos.

889 thoughts on “Por que o VI tem sintaxe colorida como usuário normal e como usuário root não?”

  1. Pingback: Google
  2. Pingback: sex toy
  3. Pingback: best kona coffee
  4. Pingback: lion kona coffee
  5. Pingback: huge dong
  6. Pingback: cyberskin sleeve
  7. Pingback: Google
  8. Pingback: adidas
  9. Pingback: vibe vibrator
  10. Pingback: penis vacuum pump
  11. Pingback: Buy Vigra
  12. Pingback: acessorios de bebe
  13. Pingback: butt plug
  14. Pingback: cheap web hosting
  15. Pingback: prostate vibrator
  16. Pingback: sex toy review
  17. Pingback: dildo strapon
  18. Pingback: ETH
  19. Pingback: kona coffee
  20. Pingback: Limo Minneapolis
  21. Pingback: polythene sheeting
  22. Pingback: adult toys usa
  23. Pingback: adam eve lingerie
  24. Pingback: adam eve shipping
  25. Pingback: female vibrater
  26. Pingback: Sripatum
  27. Pingback: RMUTT
  28. Pingback: nipple stimulator
  29. Pingback: SEO 2018
  30. Pingback: accident pain
  31. Pingback: extra big dildo
  32. Pingback: laptop app
  33. Pingback: Pinganillo
  34. Pingback: best vibrater
  35. Pingback: wireless bluetooth
  36. Pingback: numerical chat
  37. Pingback: sex movie
  38. Pingback: sex movie
  39. Pingback: dildo strapon
  40. Pingback: P-spot
  41. Pingback: double vibrator
  42. Pingback: Beaded Butt Plug
  43. Pingback: best vibrator
  44. Pingback: oral sex vibrator
  45. Pingback: best kona coffee
  46. Pingback: buy vigra online
  47. Pingback: Orlando SEO agency
  48. Pingback: Iphone glass
  49. Pingback: vibrator review
  50. Pingback: dildo realistic
  51. Pingback: telecommute jobs
  52. Pingback: love dolls
  53. Pingback: sex toys for clit
  54. Pingback: harmonica game
  55. Pingback: silicone anal lube
  56. Pingback: Penis Enhancer
  57. Pingback: mp3 song
  58. Pingback: Less Of Tour
  59. Pingback: خرید هاست
  60. Pingback: 海美迪
  61. Pingback: 美容外科
  62. Pingback: security door
  63. Pingback: coffee and beans
  64. Pingback: نماشویی
  65. Pingback: ترمیم مو
  66. Pingback: Sahara
  67. Pingback: check that
  68. Pingback: alexis love
  69. Pingback: Desi Rock Band
  70. Pingback: Throwback music
  71. Pingback: 90's hits
  72. Pingback: xnxx.com
  73. Pingback: وکیل
  74. Pingback: خرید vpn
  75. Pingback: خرید vpn
  76. Pingback: buy coffee beans
  77. Pingback: خرید vpn
  78. Pingback: خرید vpn
  79. Pingback: Ko coffee
  80. Pingback: persian setar
  81. Pingback: خرید vpn
  82. Pingback: look here
  83. Pingback: helicopter tour
  84. Pingback: سئو سایت
  85. Pingback: coffee beans
  86. Pingback: buy kona coffee
  87. Pingback: خرید vpn
  88. Pingback: how to make coffee
  89. Pingback: خرید کریو
  90. Pingback: خرید vpn
  91. Pingback: خرید vpn مک
  92. Pingback: خرید vpn
  93. Pingback: vpn موبایل
  94. Pingback: خرید کریو
  95. Pingback: خرید vpn
  96. Pingback: rsync hacks
  97. Pingback: خرید vpn
  98. Pingback: tam
  99. Pingback: كريو خريد
  100. Pingback: Rbx place
  101. Pingback: möbler
  102. Pingback: termeh
  103. Pingback: خرید vpn
  104. Pingback: گوگل adwords
  105. Pingback: خرید vpn
  106. Pingback: Belize hotels
  107. Pingback: 脱毛
  108. Pingback: گوگل adwords
  109. Pingback: wordpress security
  110. Pingback: vpn
  111. Pingback: گوگل adwords
  112. Pingback: sportovní legíny
  113. Pingback: PHP login script
  114. Pingback: novin
  115. Pingback: کولر سوله
  116. Pingback: persian tar
  117. Pingback: resume templates
  118. Pingback: گوگل adwords
  119. Pingback: cash parking
  120. Pingback: سیستم cctv
  121. Pingback: خرید vpn
  122. Pingback: خرید vpn
  123. Pingback: خرید vpn
  124. Pingback: سیستم cctv
  125. Pingback: خرید vpn
  126. Pingback: سیستم cctv
  127. Pingback: فروش طلا
  128. Pingback: love tips
  129. Pingback: سیستم cctv
  130. Pingback: خرید vpn
  131. Pingback: خرید طلا
  132. Pingback: Samsung wholesale
  133. Pingback: سیستم cctv
  134. Pingback: خرید طلا
  135. Pingback: خرید vpn
  136. Pingback: work&travel
  137. Pingback: gratis inserate
  138. Pingback: خرید vpn
  139. Pingback: سیستم cctv
  140. Pingback: خرید vpn
  141. Pingback: sex bondage kit
  142. Pingback: sex with vibrator
  143. Pingback: خرید vpn
  144. Pingback: clitoral vibrators
  145. Pingback: pulsating vibrator
  146. Pingback: towel
  147. Pingback: health
  148. Pingback: credit repair
  149. Pingback: خرید طلا
  150. Pingback: diet destinations
  151. Pingback: fiscal fervor
  152. Pingback: nipple teasers
  153. Pingback: huge dildo review
  154. Pingback: does size matter
  155. Pingback: خرید طلا
  156. Pingback: adult board games
  157. Pingback: خرید vpn
  158. Pingback: خرید vpn
  159. Pingback: خرید طلا
  160. Pingback: سیستم cctv
  161. Pingback: dildo reviews
  162. Pingback: tanfolyam
  163. Pingback: basics
  164. Pingback: Arabic hoodies
  165. Pingback: using glass dildo
  166. Pingback: خرید vpn
  167. Pingback: mom sexually
  168. Pingback: pegging
  169. Pingback: dildo
  170. Pingback: hp drivers
  171. Pingback: ad boards
  172. Pingback: sex toy for men
  173. Pingback: Organic food
  174. Pingback: best mini vibrator
  175. Pingback: bahis siteleri
  176. Pingback: kona coffee beans
  177. Pingback: miniclip
  178. Pingback: miniclip
  179. Pingback: bahis siteleri
  180. Pingback: bahis siteleri
  181. Pingback: bahis siteleri
  182. Pingback: bahis siteleri
  183. Pingback: bahis siteleri
  184. Pingback: flying shark
  185. Pingback: fifa world cup
  186. Pingback: bahis siteleri
  187. Pingback: bahis siteleri
  188. Pingback: goldenbah's
  189. Pingback: penis size
  190. Pingback: onetime penis ring
  191. Pingback: bdsm bondage
  192. Pingback: Morgellons Cure
  193. Pingback: clash royale hack
  194. Pingback: estate tweed suit
  195. Pingback: PHP Scripts
  196. Pingback: Sandskädda
  197. Pingback: pegging toys
  198. Pingback: solaray
  199. Pingback: using dildo
  200. Pingback: illuminati members
  201. Pingback: Love
  202. Pingback: Illuminati
  203. Pingback: matka result
  204. Pingback: jageze
  205. Pingback: free chat rooms
  206. Pingback: Sterling Silver
  207. Pingback: dental treatments
  208. Pingback: today
  209. Pingback: VOODOO LOVE SPELL
  210. Pingback: Scuba Diving
  211. Pingback: mandiriqq
  212. Pingback: youthfulforever
  213. Pingback: Crema Anestesica
  214. Pingback: PCB Repairs
  215. Pingback: psychic
  216. Pingback: psychic
  217. Pingback: Toronto Escorts
  218. Pingback: Cokoye
  219. Pingback: gps tracker
  220. Pingback: appunti
  221. Pingback: Cactus for sale
  222. Pingback: starter sex toys
  223. Pingback: Computer City
  224. Pingback: ceneval egel
  225. Pingback: golf accessories
  226. Pingback: prayer
  227. Pingback: brazilian hair
  228. Pingback: sexual awareness
  229. Pingback: remy hair
  230. Pingback: Indian hair
  231. Pingback: girl fingers
  232. Pingback: malaysian hair
  233. Pingback: peruvian hair
  234. Pingback: Trading
  235. Pingback: Small Vibrator
  236. Pingback: Classic Pump
  237. Pingback: fantasy novel
  238. Pingback: my first dildo
  239. Pingback: travel tips
  240. Pingback: Viagra vs cialis
  241. Pingback: segodnya praznik
  242. Pingback: seks
  243. Pingback: pubg shop
  244. Pingback: Cialis kaufen
  245. Pingback: abc
  246. Pingback: first adult toy
  247. Pingback: Viagra kaufen
  248. Pingback: Atorvastatin
  249. Pingback: paul movie
  250. Pingback: Hydroquinone
  251. Pingback: sportotobet
  252. Pingback: Hydroquinone
  253. Pingback: atreef
  254. Pingback: Airbnb coupon
  255. Pingback: خرید vpn
  256. Pingback: kids
  257. Pingback: giant dildo
  258. Pingback: satisfyer pro
  259. Pingback: reliable
  260. Pingback: برش لیزر
  261. Pingback: slovari ogegova
  262. Pingback: Buy generic cialis
  263. Pingback: Discount cialis
  264. Pingback: Viagra prices
  265. Pingback: KITE
  266. Pingback: electronics
  267. Pingback: lesbian sex toys
  268. Pingback: prazdnik kakoy
  269. Pingback: trah_net_621
  270. Pingback: strap-on dildo
  271. Pingback: doc johnson sasha
  272. Pingback: anal kit
  273. Pingback: digital marketing
  274. Pingback: Access Denined
  275. Pingback: realistic dildo
  276. Pingback: vaginal tightening
  277. Pingback: Rabbit Vibrator
  278. Pingback: dick pump
  279. Pingback: sex toys
  280. Pingback: Dildo
  281. Pingback: best sex toys
  282. Pingback: prostate toy
  283. Pingback: film
  284. Pingback: top sex toys
  285. Pingback: drivers
  286. Pingback: best male sex toys
  287. Pingback: lovehoney
  288. Pingback: Sarah Rae Vargas
  289. Pingback: fitness trends
  290. Pingback: free stock photos
  291. Pingback: clit vibrator
  292. Pingback: 19 avgusta 3606
  293. Pingback: DraftKings DFS
  294. Pingback: longer sex
  295. Pingback: Tire Pressure
  296. Pingback: friv
  297. Pingback: NFL DFS
  298. Pingback: College Basketball
  299. Pingback: College Basketball
  300. Pingback: g-spot vibrator
  301. Pingback: g spot stimulator
  302. Pingback: DraftKings NBA
  303. Pingback: سكس
  304. Pingback: how to
  305. Pingback: Live sex
  306. Pingback: russian holidays
  307. Pingback: aflamsex
  308. Pingback: Cryto curency
  309. Pingback: rottweiler puppy
  310. Pingback: Xxx live sexy cams
  311. Pingback: Livesex
  312. Pingback: Hip hop leaks
  313. Pingback: Tire change
  314. Pingback: Livesexgirls
  315. Pingback: lesbian sex toys
  316. Pingback: Freexxx
  317. Pingback: Porno videos
  318. Pingback: Sexy shemale
  319. Pingback: Hot babes
  320. Pingback: Iphone deal
  321. Pingback: Cheap iphone cases
  322. Pingback: Iphone cover
  323. Pingback: سكس مترجم
  324. Pingback: سكس
  325. Pingback: text messaging
  326. Pingback: rechargeable vibe
  327. Pingback: strapon dildo set
  328. Pingback: best vibraters
  329. Pingback: Generic cialis
  330. Pingback: سكس
  331. Pingback: سكس مترجم
  332. Pingback: Free MILF Porn
  333. Pingback: 2018 NFL Schedule
  334. Pingback: Dr Kassabian
  335. Pingback: intel
  336. Pingback: TRADE MY CAR
  337. Pingback: vse prazdnik
  338. Pingback: facebook
  339. Pingback: kegel ball review
  340. Pingback: lesbian massager
  341. Pingback: lesbian toys
  342. Pingback: mp3 songs
  343. Pingback: aflampornhd
  344. Pingback: Musicpleer
  345. Pingback: photo to sketch
  346. Pingback: bullet vibrator
  347. Pingback: using lube
  348. Pingback: sex toy reviews
  349. Pingback: weird sex toys
  350. Pingback: tech house dj
  351. Pingback: home inspections
  352. Pingback: Wand Massager
  353. Pingback: Best Penis Ring
  354. Pingback: Best Sex Lubricant
  355. Pingback: poker88
  356. Pingback: powerful vibrator
  357. Pingback: MILF Porn
  358. Pingback: mp3juices
  359. Pingback: tubidy
  360. Pingback: sex toy for men
  361. Pingback: huge dildo review
  362. Pingback: super head honcho
  363. Pingback: Cialis generic
  364. Pingback: hardest vibrator
  365. Pingback: sex toy bullet
  366. Pingback: Cialis online
  367. Pingback: writeaessay
  368. Pingback: ebooks for resale
  369. Pingback: powerful vibrator
  370. Pingback: Cialis coupon
  371. Pingback: Cialis online
  372. Pingback: rapture massager
  373. Pingback: tolkovanie snov
  374. Pingback: netflix free
  375. Pingback: iPhone 5 Cable
  376. Pingback: Lenovo
  377. Pingback: golfing for all
  378. Pingback: shi/shi union
  379. Pingback: sex toy bar
  380. Pingback: prazdnik segodnya
  381. Pingback: yoni masseur paris
  382. Pingback: nintendo dope
  383. Pingback: amazon boston
  384. Pingback: Used cellphone
  385. Pingback: Security Firm
  386. Pingback: vibrator designs
  387. Pingback: auto taxi
  388. Pingback: فال هفتگی
  389. Pingback: pure kona coffees
  390. Pingback: pure kona coffee
  391. Pingback: Baby Playpen
  392. Pingback: Freemason Ring
  393. Pingback: Uppsala veterinär
  394. Pingback: Glass petri dishes
  395. Pingback: networkingevents
  396. Pingback: thruster sex toy
  397. Pingback: strapon bunny
  398. Pingback: the accomidator
  399. Pingback: Penis Pump
  400. Pingback: Sex Swing
  401. Pingback: Best Butt Plug
  402. Pingback: seks forum
  403. Pingback: euromedi.tv
  404. Pingback: free online course
  405. Pingback: Kinky Bondage
  406. Pingback: Huge Dildos
  407. Pingback: نيك
  408. Pingback: Dildo Reviews
  409. Pingback: mp3 download
  410. Pingback: برامج
  411. Pingback: penis pump
  412. Pingback: neón mega bullet
  413. Pingback: 6 inch dildos
  414. Pingback: big dildos
  415. Pingback: sex xlxx
  416. Pingback: Cheap Web Hosting
  417. Pingback: atlanta bail bond
  418. Pingback: Buy kona coffee
  419. Pingback: سكس
  420. Pingback: lion coffee beans
  421. Pingback: cash for junk cars
  422. Pingback: lion coffee blends
  423. Pingback: purple hoverboard
  424. Pingback: hosting
  425. Pingback: Videography
  426. Pingback: sexual fantasy
  427. Pingback: phenq ingredients
  428. Pingback: seo service
  429. Pingback: Cyber Bullying
  430. Pingback: IT Support
  431. Pingback: free phone cases
  432. Pingback: office number
  433. Pingback: سگوی چیست
  434. Pingback: christian dogma

Comments are closed.