#!/bin/sh
# ========================================================
# 1)파일 압축
# tar -jcvpf [압축파일명] [압축 대상]...
# [afewgood@localhost ~]$ tar -jcvpf afewgood.tar.bz2 afew good
# 2)자동 압축해제 파일 생성
# cat extract.sh [압축파일명] > afewgood.zip(bin)
# [afewgood@localhost ~]$ cat extract.sh afewgood.tar.bz2 > afewgood.zip(bin)
# 3)파일 권한설정
# chmod xxx afewgood.zip(bin)
# [afewgood@localhost ~]$ chmod a+x afewgood.zip(bin)
# 4)압축 해제 (원하는 위치에 이동 후)
# ./afewgood.zip(bin)
# [afewgood@localhost ~]$ ./afewgood.zip(bin) 또는 sh afewgood.zip(bin)
# ========================================================

echo -n "Start Extracting file into "
pwd
# searches for the line number where finish the script and start the tar.gz
SKIP=`/usr/bin/awk '/^__ARCHIVE_BELOW__/ { print NR + 1; exit 0; }' $0`
# remeber file name
THIS=`pwd`/$0

# take the tarfile and pipe it into tar (just tar, no gzip)
/usr/bin/tail -n +$SKIP $THIS | /bin/tar jxvpf - -C ./

# Any script here will happen after the tar file extrace.
sync
sync
sync
echo "Finished"
ls -al
exit 0
# NOTE: Don't place any newline characters after the last line below.
__ARCHIVE_BELOW__

'linux' 카테고리의 다른 글

cross compiler 설치 후  (0) 2020.08.27
sudo 명령어 패스워드 없이 사용하기  (0) 2019.12.30
Linux 명령어 모음 ...ing  (0) 2019.10.16
[Ubuntu] ShellPrompt 변경  (0) 2019.06.07
[Ubuntu] unexpected operator 쉘스크립트 에러  (0) 2019.06.05
Posted by afewgood
,

registry

windows 2019. 6. 14. 16:42

네트워크 프로필
컴퓨터\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles

시작프로그램 Program 삭제
원인: 프로그램 삭제시 제대로 정리되지 않은 프로그램이 시작프로그램에 프로그램으로 남는 경우가 있음.

이름 또는 게시자 등의 타이틀에서 마우스 우클릭 → 명령줄 체크
프로그램의 실행경로가 표시됨
레지스트리 (win+r → regedit)의 아래 경로로 가서 해당항목 찾아서 삭제
컴퓨터\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
컴퓨터\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
컴퓨터\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run

Posted by afewgood
,

안전하지 않기 때문에 파일 공유에 연결할 수 없습니다. 이 공유에는 안전하지 않아 시스템이 공격에 노출될 수 있는 더 이상 사용되지 않는 SMB1 프로토콜이 필요합니다. 시스템에 SMB2 이상이 필요합니다. 이 문제를 해결하는 방법에 대한 자세한 내용은 https://go.microsoft.com/fwlink/?linkid=852747을 참조하십시오

오류 해결방법
제어판 → 프로그램 및 기능 → Windows 기능 켜기/끄기 → SMB 1.0/CIFS 파일 공유 지원 → SMB 1.0/CIFS 클라이언트 항목 체크

Posted by afewgood
,