Server(Windows&Linux)2016. 2. 25. 16:46
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

오류 해결

yum install libstdc++.so.6

다른 so 파일 도 오류가 난다면  yum 으로 설치 하면 해결.

ld-linux.so.2 관련 오류 가 났을 때 yum 설치로 해결 가능.

yum install ld-linux.so.2

Posted by 비니미니파
Server(Windows&Linux)2016. 2. 24. 11:05

httpd (apache2 ) 구동 시 메세지

Set the 'ServerName' directive globally to suppress this message

httpd.conf

#ServerName www.example.com:80

주석을 풀고 ServerName 을 입력한다.

ServerName www.d4emon.com:80

Posted by 비니미니파
Server(Windows&Linux)2016. 2. 24. 10:54

PHP 컴파일 설치 시 오류

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

개발환경 : CentOS 7

yum -y install epel-release
yum -y install php-mcrypt
yum -y install libmcrypt-devel

 

Posted by 비니미니파
Server(Windows&Linux)2016. 1. 25. 09:48

1. yum-cron 설치

~]# yum install yum-cron

2. yum-cron 설치 파일

~]# rpm -ql yum-cron

/etc/cron.daily/0yum-daily.cron
/etc/cron.hourly/0yum-hourly.cron
/etc/yum/yum-cron-hourly.conf
/etc/yum/yum-cron.conf
/usr/lib/systemd/system/yum-cron.service
/usr/sbin/yum-cron
/usr/share/doc/yum-cron-3.4.3
/usr/share/doc/yum-cron-3.4.3/COPYING
/usr/share/man/man8/yum-cron.8

3. yum-cron 구동 및 구동상태 확인

~]# systemctl start yum-cron

~]# systemctl status yum-cron

- 다음에는 yum-cron.conf 를 정리해 봐야 겠다.

 

Posted by 비니미니파
Server(Windows&Linux)2015. 7. 30. 09:40

bind 도메인 설정 추가

named.conf  설정

zone "d4emon.pe.kr" IN {
        type master;
        file "d4emon.pe.kr.zone";
        allow-update { none; };
};

zone 파일 생성

d4emon.pe.kr.zone

~]# service named restart

설정한 도메인이 응답하지 않는다.

ㅠ.ㅠ

생성한 zone 파일의 소유자를 확인해 보자

~]# ll

헉~ root 로 되어있다. 소유자를 바꾸자

~]# chown named.named d4emon.pe.kr.zone

~]# service named restart

~]# dig d4emon.pe.kr

잘된다.

* zone 파일 생성 후 소유자를 꼭!!!! 확인하자!!!!

Posted by 비니미니파
Server(Windows&Linux)2015. 7. 16. 10:46

LInux )

]# netstat -an | grep LISTEN

 

Windows )

> netstat -an | findstr LISTEN

Windows 명령어 findstr 을 알아보면 

~>findstr /?
파일에서 문자열을 찾습니다.

FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P]
         [/F:파일][/C:문자열] [/G:파일] [/D:디렉터리 목록] [/A:색 속성] [/OFF[LI
NE]]
         문자열 [[드라이브:][경로]파일이름[ ...]]

  /B         패턴이 행의 첫 부분에 있는지를 비교합니다.
  /E         패턴이 행의 끝부분에 있는지를 비교합니다.
  /L         찾는 문자열을 글자 그대로 사용합니다.
  /R         찾는 문자열을 정규식으로 사용합니다.
  /S         현재 디렉터리와 모든 하위 디렉터리에서 일치하는 파일을 찾습니다.
  /I         찾을 때 대/소문자를 구별하지 않습니다.
  /X         정확히 일치하는 줄만 보여줍니다.
  /V         일치하는 텍스트가 없는 줄만 보여줍니다.
  /N         일치하는 각 줄 앞에 줄 번호를 보여줍니다.
  /M         파일에 일치하는 텍스트가 있으면 파일 이름만 보여줍니다.
  /O         일치하는 각 줄 앞에 문자 오프셋을 보여줍니다.
  /P         인쇄할 수 없는 텍스트가 포함된 파일은 건너뜁니다.
  /OFF[LINE] 오프라인 속성 세트 파일을 건너뛰지 않습니다.
  /A:속성    색 속성을 두 자리 16진수로 지정합니다. "color /?"를 참조하십시오.
  /F:파일    지정된 파일에서 파일 목록을 읽습니다('/'는 콘솔에 해당됩니다).
  /C:문자열  지정된 텍스트를 글자 그대로 찾는 문자열로 사용합니다.
  /G:파일    지정된 파일로부터 찾는 텍스트를 받습니다('/'는 콘솔에 해당됩니다).
  /D:디렉터리    디렉터리 목록을 구분하는 세미콜론(;)를 찾습니다.
  문자열     찾을 텍스트.
  [드라이브:][경로]파일이름
             찾을 파일을 지정합니다.

/C 옵션을 사용한 경우가 아니면, 찾는 문자열을 여러 개 지정할 때
공백으로 분리하십시오. 예를 들면, 'FINDSTR "hello there" x.y' 명령을
입력하면 파일 x.y에서 "hello"나 "there"을 찾습니다.
반면에 'FINDSTR /C:"hello there" x.y' 명령을 입력하면 파일 x.y에서
"hello there"을 찾습니다.

정규식에 대한 참고 사항:
  .         와일드카드: 모든 문자
  *         반복: 문자나 클래스에 대하여 0번 이상 반복
  ^         행 위치: 행의 앞부분
  $         행 위치: 행의 끝부분
  [클래스]  문자 클래스: 세트에 있는 문자
  [^클래스] 역 클래스: 세트에 없는 문자
  [x-y]     범위: 특정 범위에 있는 문자
  \x        이스케이프: 메타 문자 x를 문자 그대로 사용
  \<xyz     단어 위치: 단어의 앞부분
  xyz\>     단어 위치: 단어의 끝부분

Findstr에서 사용 가능한 정규식은 온라인 명령을 참조하십시오.

 

Posted by 비니미니파
Server(Windows&Linux)2014. 12. 26. 10:22

예전 블로그 정리중... 예전 작성글....

ext3 에서 Quota 설정하기

Test 환경....

Linux : Hancomsoftlinux 2005

1. /etc/fstab 설정

/home 과 /var에 쿼터 설정을 하려한다.

설정전
LABEL=/home             /home            ext3    defaults  1 2
LABEL=/var              /var             ext3    defaults  1 2

설정 후
LABEL=/home             /home            ext3    defaults,usrquota  1 2
LABEL=/var              /var             ext3    defaults,usrquota  1 2

2. aquota.user 파일 만들기 / 퍼미션 설정

touch /home/aquota.user
chmod 600 /home/aquota.user
touch /home/aquota.user
chmod 600 /var/aquota.user

3. 리부팅 또는 리마운트 한다.
mount -o remount /home
mount -o remount /var

 4. 쿼터체크 실행
~]# quotacheck -augvm -F vfsv0
quotacheck: WARNING -  Quotafile /home/aquota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/sda7 [/home] quotacheck: Old group file not found. Usage will not be substrac
ted.
done
quotacheck: Checked 12 directories and 19 files
quotacheck: WARNING -  Quotafile /var/aquota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/sda6 [/var] quotacheck: Old group file not found. Usage will not be substract
ed.
done
quotacheck: Checked 129 directories and 913 files

 5. 쿼터 실행
~]# quotaon -a

 6. 쿼터 상태 보기
~]# repquota -a
*** Report for user quotas on device /dev/sda7
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --   32828       0       0              3     0     0

*** Report for user quotas on device /dev/sda6
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --   40464       0       0           1003     0     0
daemon    --       8       0       0              3     0     0

7. 쿼터 설정하기
~]# eduquota -u [username]

쿼터설정은 다른 문서 참조하세요~

http://wiki.kldp.org/wiki.php/QuotaMiniHOWTO


잡담)

쿼터가 이렇게 말썽을 부릴줄은 몰랐다~
국내 사이트 검색해서는 답을 찾을수가 없었다~

결국, 안되는 영어실력으로 redhat.com에서 답을 찾을 수가 있었다...
역시~ 영어공부를 해야한단 말인가~ ㅠ.ㅠ

 ext3에서 쿼터설정때문에 헤매었던분들에게 도움이 되길.... ^^

Posted by 비니미니파
Server(Windows&Linux)2014. 12. 26. 10:09

예전 작성한 블로그 정리중....

1. yum 을 통한 설치

* yum 을 사용하기 전...

rpmfind.net 이란 사이트에서 rpm 패키지를 찾고 wget 으로 다운받아 rpm 을 설치하였다.

 * yum을 사용하면...

이제 그럴 필요가 없다.

설치할 패키지명만 안다면 뭐든지 설치를 바로 한다.

예를 들어 xinetd 를 설치를 해본다고 하자....

 ]# yum install xinetd

 끝이다. rpmfind 로 찾을 필요없고, 다운받아 설치할 필요도 없다. 그냥 끝이다.

 

2. yum 을 통한 업데이트

예를 들어 vsftpd 를 업데이트 하여 보자

 ]# yum update vsftpd

 끝이다. 그냥 yum update 패키지명 하면 끝이다.

 그럼 모든 패키지를 업데이트 한다고 해보자

 ]# yum update

 그냥 끝이다. 중간에 y 만 눌러주면 다 업데이트 시켜준다. 그냥  yum update 해버려라...

 중간에 y 도 귀찮다... 그럼

 ]# yum -y update

 해버려라. 그럼 그냥 지가 다 업데이트 해버린다...

 

보너스로 yum 매뉴얼...

 yum(8)                                                                  yum(8)

NAME
       yum - Yellowdog Updater Modified

SYNOPSIS
       yum [options] [command] [package ...]

DESCRIPTION
       yum is an interactive, automated update program which can be used for maintaining systems using rpm

       command is one of:
        * install package1 [package2] [...]
        * update [package1] [package2] [...]
        * check-update
        * upgrade [package1] [package2] [...]
        * remove | erase package1 [package2] [...]
        * list [...]
        * info [...]
        * provides | whatprovides feature1 [feature2] [...]
        * clean [ packages | headers | metadata | cache | dbcache | all ]
        * makecache
        * groupinstall group1 [group2] [...]
        * groupupdate group1 [group2] [...]
        * grouplist [hidden]
        * groupremove group1 [group2] [...]
        * groupinfo group1 [...]
        * search string1 [string2] [...]
        * shell [filename]
        * resolvedep dep1 [dep2] [...]
        * localinstall rpmfile1 [rpmfile2] [...]
        * localupdate rpmfile1 [rpmfile2] [...]
        * deplist package1 [package2] [...]

       Unless the --help or -h option is given, one of the above commands must be present.

       Repository configuration is honored in all operations.

       install
              Is  used to install the latest version of a package or group of packages while ensuring that all depen-
              dencies are satisfied.  If no package matches the given package name(s), they are assumed to be a shell
              glob and any matches are then installed.

       update If  run  without  any  packages,  update will update every currently installed package.  If one or more
              packages are specified, Yum will only update the listed packages.  While updating  packages,  yum  will
              ensure  that all dependencies are satisfied.  If no package matches the given package name(s), they are
              assumed to be a shell glob and any matches are then installed.

              If the --obsoletes flag is present yum will include package obsoletes in its calculations - this  makes
              it better for distro-version changes, for example: upgrading from somelinux 8.0 to somelinux 9.


       check-update
              Implemented so you could know if your machine had any updates that needed to be applied without running
              it interactively. Returns exit value of 100 if there are packages available for an update. Also returns
              a list of the pkgs to be updated in list format. Returns 0 and no packages are available for update.

       upgrade
              Is the same as the update command with the --obsoletes flag set. See update for more details.

       remove or erase
              Are used to remove the specified packages from the system as well as removing any packages which depend
              on the package being removed.

       list   Is used to list various information about available packages; more complete details  are  available  in
              the List Options section below.

       provides or whatprovides
              Is  used  to  find out which package provides some feature or file. Just use a specific name or a file-
              glob-syntax wildcards to list the packages available or installed that provide that feature or file.

       search Is used to find any packages matching a string in the description, summary, packager and  package  name
              fields of an rpm. Useful for finding a package you do not know by name but know by some word related to
              it.

       info   Is used to list a description and summary information about available packages; takes  the  same  argu-
              ments as in the List Options section below.

       clean  Is  used  to  clean up various things which accumulate in the yum cache directory over time.  More com-
              plete details can be found in the Clean Options section below.

       shell  Is used to enter the ’yum shell’, when a filename is specified the contents of that file is executed in
              yum shell mode. See yum-shell(8) for more info

       resolvedep
              Is used to list packages providing the specified dependencies, at most one package is listed per depen-
              dency.

       localinstall
              Is used to install a set of local rpm files. If required the  enabled  repositories  will  be  used  to
              resolve dependencies.

       localupdate
              Is  used  to  update the system by specifying local rpm files. Only the specified rpm files of which an
              older version is already installed will be installed, the remaining specified packages will be ignored.
              If required the enabled repositories will be used to resolve dependencies.

       deplist
              Produces  a  list  of all dependencies and what packages provide those dependencies for the given pack-
              ages.

GENERAL OPTIONS
       Most command line options can be set using the configuration file as well and the  descriptions  indicate  the
       necessary configuration option to set.

       -h, --help
              Help; display a help message and then quit.

       -y     Assume yes; assume that the answer to any question which would be asked is yes.
              Configuration Option: assume-yes

       -c [config file]
              Specifies the config file location - can take http, ftp urls and local file paths.

       -d [number]
              Sets  the debugging level to [number] - turns up or down the amount of things that are printed. Practi-
              cal range: 0 - 10
              Configuration Option: debuglevel

       -e [number]
              Sets the error level to [number] Practical range 0 - 10. 0 means print only critical errors about which
              you  must  be  told.  1 means print all errors, even ones that are not overly important. 1+ means print
              more errors (if any) -e 0 is good for cron jobs.
              Configuration Option: errorlevel

       -R [time in minutes]
              Sets the maximum amount of time yum will wait before performing a command  -  it  randomizes  over  the
              time.

       -C     Tells yum to run entirely from cache - does not download or update any headers unless it has to to per-
              form the requested action.

       --version
              Reports the yum version number and exits.

       --installroot=root
              Specifies an alternative installroot, relative to which all packages will be installed.
              Configuration Option: installroot

       --enablerepo=repoidglob
              Enables specific repositories by id or glob that have been disabled in the configuration file using the
              enabled=0 option.
              Configuration Option: enabled

       --disablerepo=repoidglob
              Disables specific repositories by id or glob.
              Configuration Option: enabled

       --obsoletes
              This option only has affect for an update, it enables yum´s obsoletes processing logic. For more infor-
              mation see the update command above.
              Configuration Option: obsoletes

       --exclude=package
              Exclude a specific package by name or glob from updates on all repositories.
              Configuration Option: exclude

       --noplugins
              Run with all plugins disabled.
              Configuration Option: plugins

LIST OPTIONS
       The following are the ways which you can invoke yum in list mode.  Note that all list commands include  infor-
       mation on the version of the package.

       yum list [all | glob_exp1] [glob_exp2] [...]
              List all available and installed packages.

       yum list available [glob_exp1] [...]
              List all packages in the yum repositories available to be installed.

       yum list updates [glob_exp1] [...]
              List all packages with updates available in the yum repositories.

       yum list installed [glob_exp1] [...]
              List  the  packages specified by args.  If an argument does not match the name of an available package,
              it is assumed to be a shell-style glob and any matches are printed.

       yum list extras [glob_exp1] [...]
              List the packages installed on the system that are not available in any yum repository  listed  in  the
              config file.

       yum list obsoletes [glob_exp1] [...]
              List  the  packages installed on the system that are obsoleted by packages in any yum repository listed
              in the config file.

       yum list recent
              List packages recently added into the repositories.

       Specifying package names
              All the list options mentioned above take file-glob-syntax wildcards or package names as arguments, for
              example  yum  list  available   칏oo* ? will  list all available packages that match ’foo*’. (The single
              quotes will keep your shell from expanding the globs.)

CLEAN OPTIONS
       The following are the ways which you can invoke yum in clean mode. Note that "all files" in the commands below
       means  "all  files  in  currently enabled repositories".  If you want to also clean any (temporarily) disabled
       repositories you need to use --enablerepo= ? ?option.

       yum clean packages
              Eliminate any cached packages from the system.  Note that packages are not automatically deleted  after
              they are downloaded.

       yum clean headers
              Eliminate all of the header files which yum uses for dependency resolution.

       yum clean metadata
              Eliminate  all of the files which yum uses to determine the remote availability of packages. Using this
              option will force yum to download all the metadata the next time it is run.

       yum clean dbcache
              Eliminate the sqlite cache used for faster access to metadata.  Using this option  will  force  yum  to
              recreate the cache the next time it is run.

       yum clean all
              Runs yum clean packages and yum clean headers as above.

MISC
       Specifying package names
              A package can be referred to for install,update,list,remove etc with any of the following:

              name
              name.arch
              name-ver
              name-ver-rel
              name-ver-rel.arch
              name-epoch:ver-rel.arch
              epoch:name-ver-rel.arch

              For example: yum remove kernel-2.4.1-10.i686

PLUGINS
       Yum  can  be extended through the use of plugins. A plugin is a Python ".py" file which is installed in one of
       the directories specified by the pluginpath option in yum.conf. For a plugin to work, the following conditions
       must be met:

       1. The plugin module file must be installed in the plugin path as just described.

       2. The global plugins option in /etc/yum.conf must be set to ‘1’.

       3.  A configuration file for the plugin must exist in /etc/yum/pluginconf.d/<plugin_name>.conf and the enabled
       setting in this file must set to ‘1’. The minimal content for such a configuration file is:

              [main]
              enabled = 1

       See the yum.conf(5) man page for more information on plugin related configuration options.

FILES
       /etc/yum.conf
       /etc/yum/repos.d/
       /etc/yum/pluginconf.d/
       /var/cache/yum/

SEE ALSO
       yum.conf (5)
       http://linux.duke.edu/yum/
       http://wiki.linux.duke.edu/YumFaq

AUTHORS
       See the Authors file included with this program.

BUGS
       There of course aren’t any bugs, but if you find any, you should first consult the  Faq  mentioned  above  and
       then email the mailing list: yum@lists.linux.duke.edu or filed in bugzilla.

Seth Vidal                        2005 Aug 05                           yum(8)

 

 

Posted by 비니미니파
Server(Windows&Linux)2014. 8. 7. 09:12

ssh 설치가 안되었을 때는 ....

 

~]# yum install openssh-server openssh-clients openssh-askpass

 

명령을 실행하고 y 를 눌러주면 끝

 

sshd 서비스 포트변경 ( 22 -> 2222 ) 및 root 로그인 막기

 

~]# vi /etc/sshd_config

--- 생략 ---

Port 2222

--- 생략 ---

PermitRootLogin no

--- 생략 ---

:wq (저장 후 나감)

----------------------------------------------------
#PermitRootLogin yes
를 찾아 변경해 줘야 한다.
----------------------------------------------------

 

구동

 

~]# /etc/init.d/sshd start

 

구동 확인

 

~]# ps -ef | grep sshd
root     00000       1  0 09:05 ?        00:00:00 /usr/sbin/sshd
root     00000 16871  0 09:15 pts/0    00:00:00 grep sshd

ssh 접속 확인

 

~]# ssh -l root localhost -p 2222

 

접속이 된다면 설정 오류 (root 로그인이 안되어야 한다)

 

~]# ssh -l tester localhost -p 2222

 

접속이 된다면 설정 완료.

Posted by 비니미니파
Server(Windows&Linux)2014. 3. 6. 10:01

1. 먼저 구동중인 프로세스 리스트 보기

[ Linux ]
ps -ef

[Windows]
tasklist

2. 프로세스 종료

[Linux]
killall -9 "서비스명"

[Windows]
taskkill /f /im "서비스명"

자세한 설명은 생략... 나중에 추가 해야 할 예정(?).... 절대 예정임... ㅠ.ㅠ

Posted by 비니미니파
Server(Windows&Linux)2014. 3. 6. 09:53

Tomcat 서비스 먹통 체크를 위한 Batch 파일 작성

아래 Tomcat 재시작 bat 파일은 Tomcat 구동이 정상일때는 잘 실행 되나 Tomcat 이 뻗은 경우 안되어서 톰캣 체크를 추가 함

이 또한 뻘짓.... (Tomcat 고수님이 보신다면 Tomcat 튜닝 해 주세요... 후사함... ㅠ.ㅠ)

혹시나 아래 내용을 복사하신다면 주석 처리 된 부분은 지워 주세요.

Bat 주석이 아님... 제가 나중에 다시 볼때 참고 하려고 그냥 주석 단 거예요... ㅠ.ㅠ

tomcatCheck.bat 파일 내용

@echo off

set TRYCNT=1                                             // 시도 횟수 TRYCNT 선언 **주의** 변수=값 은 반드시 붙여 쓰기를 해야 함

:LOOP                                                       // goto 시 도착지(?)

sc query "Tomcat6" | find "RUNNING"            // sc query "서비스명"

if "%ERRORLEVEL%"=="0" (                        // 위의 명령으로 반환된 ERRORLEVEL 이 0 이면 서비스 정상

    goto QUIT                                             // QUIT 로 이동

) else if %TRYCNT% GTR 2 (                      // Tomcat 스타트 시도 횟수가 2이상이면 아래 실행

   taskkill /f /im Tomcat6.exe                      // 정상적인 Tomcat 스타트를 하였을 때 구동 되지 않았으므로 강제 종료
   ping 1.1.1.1 -n 1 -w 4000 > nul                // 4초 sleep
   net.exe start "Tomcat6"                           // Tomcat 서비스 스타트

   ping 1.1.1.1 -n 1 -w 4000 > nul                // 4초 sleep
   set /a TRYCNT=%TRYCNT%+1                // 시도횟수 + 1 증가  **주의** set /a 해야만 연산됨
   goto LOOP

) else (                                                   // Tomcat 서비스가 정상 동작 중이지 않을때 2회 까지 시도

    net.exe start "Tomcat6"                         // Tomcat 서비스 스타트
    ping 1.1.1.1 -n 1 -w 4000 > nul              // 4초 sleep
    set /a TRYCNT=%TRYCNT%+1              // 시도횟수 + 1 증가
    goto LOOP                                          // LOOP 로 이동 ( 정상 서비스 체크를 위함 )
)

:QUIT

echo %TRYCNT%                                    // batch 테스트 시 몇번 만에 성공 하였는지 볼려고 넣었음.

 

Posted by 비니미니파
Server(Windows&Linux)2014. 2. 27. 09:36

Tomcat 이 이렇게나 많이 뻗은적이 없었는데....

임시 방편으로 윈도우 서비스에 등록된 Tomcat 을 주기적으로 재시작 시켜야 했다... ㅠ.ㅠ

tomcatRestart.bat

net.exe stop "Tomcat6" && net.exe start "Tomcat6"

[사용법]

net.exe stop "서비스명"

net.exe start "서비스명"

[첫번째 명령이 끝난 다음 다음 명령 실행 : && 로 구분]

명령1 && 명령2

[ 참고 리눅스에서는.... :  다음 명령 실행은 ; (세미클론)으로 구분 ]

service "서비스명" restart

명령1 ; 명령2

[  Windows 에서 서비스 또 다른 명령어 ]

sc start "서비스명"

sc stop "서비스명"

Posted by 비니미니파
Server(Windows&Linux)2013. 12. 4. 16:07

현재 디렉토리 이하 모든 *.php 파일을 찾아서 www.abc.comwww.aaa.com 으로 바꾸는 명령어

find 와 perl 명령어 실행 권한이 있어야 한다.

find ./* -type f -name '*.php' -exec perl -pi -e 's/www.abc.com/www.aaa.com/g' {} \;

참고 )))

window 용 find와 perl 을 설치하여 실행해 보았으나 실패.... ㅠ.ㅠ

윈도우에서는 editplus ctrl+h 신공으로 바꾸자.

 

추가 )))

find -exec 를 이용한 예

문제 ) *.bak 파일을 찾아서 지우기

답 ) find ./* -type f -name '*.bak' -exec rm -f {} \;

    삭제 명령 실행전 find ./* -type f -name '*.bak' -exec ls -l {} \; 을 먼저 실행하여 원하는 결과가 나오는지 확인 하자.

    delete 전에 where 같은 조건으로 select 하는 거와 같다.

 

 

 

Posted by 비니미니파