nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

How to copy fonts file in UNIX / Linux?

This is a discussion on How to copy fonts file in UNIX / Linux? within the Ubuntu / Debian forums, part of the Linux Distribution category; if i have folder of .ttf fonts e.g. folder name < folder A > and i want to copy all ...


Go Back   nixCraft Linux Forum > Linux Distribution > Ubuntu / Debian

Linux answers from nixCraft.


Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-07-2009, 01:31 PM
Member
User
 
Join Date: May 2009
Location: Thailand
OS: ubuntu
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tonjaa is on a distinguished road
Arrow How to copy fonts file in UNIX / Linux?

if i have folder of .ttf fonts e.g. folder name < folder A > and i want to copy all file in
<folder A> to /usr/share/fonts/trutype
what is correct command to copy all file ?
Reply With Quote
  #2 (permalink)  
Old 12-07-2009, 02:18 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Use cp command to copy a single file:
Code:
cp -v filename /usr/share/fonts/trutype
To copy all files from foldera
Code:
cp -v foldera/* /usr/share/fonts/trutype
To copy all files including subdirs from foldera
Code:
cp -ar foldera/* /usr/share/fonts/trutype
To overwrite files using
Code:
/bin/cp -arvf foldera/* /usr/share/fonts/trutype
If you've space in folder name (like folder a), use it as follows:
Code:
/bin/cp -arvf "Folder A/*" /usr/share/fonts/trutype
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 12-07-2009, 06:14 PM
Member
User
 
Join Date: May 2009
Location: Thailand
OS: ubuntu
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tonjaa is on a distinguished road
Lightbulb

Thank you very much . ^_^
Reply With Quote
Reply

Tags
cp command , linux copy files , linux copy folders , unix copy files , unix copy folders


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
copy file with standard name by inserting file-date and time in name meowing File Servers 5 20-07-2009 07:04 PM
Conditional FTP Linux / UNIX Shell Script To Download File vishal_titre Shell scripting 1 03-02-2009 04:54 PM
Find Unix Linux File / Directory by date And Then Copy / Move File asim.mcp CentOS / RHEL / Fedora 1 10-08-2008 03:30 AM
Linux Copy an audio cd / track to hard disk Peterrodg Getting started tutorials 2 12-01-2008 10:50 PM
Linux use ghost or copy a partition to another drive raj Linux software 2 17-07-2006 01:56 AM


All times are GMT +5.5. The time now is 06:50 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38