Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 1
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
3. Using Linux commands
  


cat and cp page 14 of 15


To display the contents of the file on the terminal, use the cat command:


$ cat copyme
firstfile

Now, we can use a basic invocation of the cp command to create a copiedme file from the original copyme file:


$ cp copyme copiedme

Upon investigation, we find that they are truly separate files; their inode numbers are different:


$ ls -i copyme copiedme
  648284 copiedme   650704 copyme

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact