job/linux

쓸만한 리눅스 명령어

시스템엔지니어 2018. 9. 3. 11:30

rename 


[root@localhost tmp]# ll

total 12

-rw-r--r--. 1 root root    0 Sep  3 11:28 test1

-rw-r--r--. 1 root root    0 Sep  3 11:28 test2

-rw-r--r--. 1 root root    0 Sep  3 11:28 test3

-rw-r--r--. 1 root root    0 Sep  3 11:28 test4

-rw-r--r--. 1 root root    0 Sep  3 11:28 test5

-rw-r--r--. 1 root root   16 Sep  3 10:44 test.txt

[root@localhost tmp]# rename test sadong ./*

[root@localhost tmp]# ll

total 12
-rw-r--r--. 1 root root    0 Sep  3 11:28 sadong1

-rw-r--r--. 1 root root    0 Sep  3 11:28 sadong2

-rw-r--r--. 1 root root    0 Sep  3 11:28 sadong3

-rw-r--r--. 1 root root    0 Sep  3 11:28 sadong4

-rw-r--r--. 1 root root    0 Sep  3 11:28 sadong5

-rw-r--r--. 1 root root   16 Sep  3 10:44 sadong.txt