mv ¸í·É¾î¸¦ ÅëÇØ¼ ÆÄÀÏ¸í º¯°æÀÌ °¡´ÉÇÏÁö¸¸ ÀÏÁ¤ÇÑ ÆÐÅÏ¿¡ º¹¼ö¿¡ ÆÄÀÏÀ» ¼öÁ¤Çϱ⿡´Â »ó´çÈ÷ ¹ø°Å·Ó°í ±ÍÂúÀº ÀÏÀÌ´Ù.
¸®´ª½º¿¡¼´Â rename À̶ó´Â ¸í·É¾î·Î ÆÄÀϸí Àϰý º¯°æÀÌ °¡´ÉÇÏ´Ù
 
¿¹¸¦ µé¾î ³ª°°Àº °æ¿ì´Â htb ¼¹ö¿¡ µð¹ÙÀ̽º ¸íĪÀ» º¯°æÇØÁÖ·Á°í ÇÑ´Ù.
ÀÌ·²¶§ »ç¿ëÇÑ´Ù¸é....¾Æ·¡Ã³·³
| 
 [root@chonnom htb]# ls -al drwxr-xr-x   2 root root   4096  1¿ù 19 17:05 . drwxr-x---  10 root root   4096  1¿ù 19 17:05 .. -rw-r--r--   1 root root     45  1¿ù 19 17:05 eth2 -rw-r--r--   1 root root     61  1¿ù 19 17:05 eth2-10.CL_a -rw-r--r--   1 root root     65  1¿ù 19 17:05 eth2-11.CL_b -rw-r--r--   1 root root     64  1¿ù 19 17:05 eth2-12.CL_c -rw-r--r--   1 root root     62  1¿ù 19 17:05 eth2-14.SH_d -rw-r--r--   1 root root     61  1¿ù 19 17:05 eth2-15.SH_e -rw-r--r--   1 root root     62  1¿ù 19 17:05 eth2-16.CL_f -rw-r--r--   1 root root     63  1¿ù 19 17:05 eth2-17.CL_g -rw-r--r--   1 root root     62  1¿ù 19 17:05 eth2-18.CL_h 
  
[root@chonnom htb]# rename eth2 eth3 eth2* 
 ==> eth2 °¡ Æ÷ÇԵȠÆÄÀϸíÀ» eth3À¸·Î º¯°æÇϴµ¥ eth2* ÆÄÀÏ ¸ðµÎ¸¦ º¯°æ 
  
[root@chonnom htb]# ls -al drwxr-xr-x   2 root root   4096  1¿ù 19 17:05 . drwxr-x---  10 root root   4096  1¿ù 19 17:05 .. -rw-r--r--   1 root root     45  1¿ù 19 17:05 eth3 -rw-r--r--   1 root root     61  1¿ù 19 17:05 eth3-10.CL_a -rw-r--r--   1 root root     65  1¿ù 19 17:05 eth3-11.CL_b -rw-r--r--   1 root root     64  1¿ù 19 17:05 eth3-12.CL_c -rw-r--r--   1 root root     62  1¿ù 19 17:05 eth3-14.SH_d -rw-r--r--   1 root root     61  1¿ù 19 17:05 eth3-15.SH_e -rw-r--r--   1 root root     62  1¿ù 19 17:05 eth3-16.CL_f -rw-r--r--   1 root root     63  1¿ù 19 17:05 eth3-17.CL_g -rw-r--r--   1 root root     62  1¿ù 19 17:05 eth3-18.CL_h  | 
 
# rename [º¯°æÇÒ ¹®ÀÚ] [º¯°æµÉ ¹®ÀÚ] º¯°æÇÒ ÆÄÀϵé
 
 
man ÆäÀÌÁö
| 
  RENAME(1)           Linux Programmer's Manual           RENAME(1)
  
NAME       rename - Rename files
  
SYNOPSIS       rename from to file...
  
DEscRIPTION       rename will rename the specified files by replacing the first occurrence of from in       their name by to.
  
      For example, given the files foo1, ..., foo9, foo10, ..., foo278, the commands              rename foo foo0 foo?              rename foo foo0 foo??
  
      will turn them into foo001, ..., foo009, foo010, ..., foo278.
  
      And              rename .htm .html *.htm       will fix the extension of your html files.
  
SEE ALSO       mv(1)  |