os/Linux 2023. 12. 28. 18:04

 

-

https://growingsaja.tistory.com/432

 

[Linux][crontab] time, schedule, cycle Setting

[ 작업 환경 ] Centos 6, 7 프로세스 예약 데몬 리눅스용 작업 스케줄러 * * * * * 수행할 명령어 분 시 일 월 요일 분 : 0~59 시 : 0~23 일 : 1~31 월 1~12 요일 : 0~6 >>> 0 : 일요일 / 1 : 월요일 / 2 : 화요일 / 3 :

growingsaja.tistory.com

 

posted by cskimair
:
os/Linux 2023. 12. 26. 13:55

 

Linux dd Command Show Progress Copy Bar With Status
https://www.cyberciti.biz/faq/linux-unix-dd-command-show-progress-while-coping/
<pre>
You need to use gnu dd command from coreutils version 8.24 or above to use the following option. The syntax is as follows to show progress copy bar with dd command:
dd if=/path/to/input of=/path/to/output status=progress

Let us pass the progress option to see periodic transfer statistics using GNU dd command:
dd if=/dev/sda of=/dev/sdb bs=1024k status=progres
</pre>

'os > Linux' 카테고리의 다른 글

[Linux][crontab] time, schedule, cycle Setting  (0) 2023.12.28
disk copy in linux  (0) 2023.12.26
[WSL2] VHD 파일 줄이기  (0) 2023.12.22
advanced-lm-sensors-tips-and-tricks-linux-0/  (1) 2023.12.22
automatic start on linux(or centos) boot  (0) 2023.10.26
posted by cskimair
:
os/Linux 2023. 12. 26. 11:45

disk copy in linux (or clone disk)

https://www.tecmint.com/clone-linux-partitions/

 

How to Clone a Partition or Hard drive in Linux

There are many reasons why you may want to clone a Linux partition or even hard drive, most of which are related to creating backups of your data.

www.tecmint.com

 

https://askubuntu.com/questions/215505/how-do-you-monitor-the-progress-of-dd

 

How do you monitor the progress of dd?

dd is a wonder. It lets you duplicate a hard drive to another, completely zero a hard drive, etc. But once you launch a dd command, there's nothing to tell you of its progress. It just sits there a...

askubuntu.com

>

dd if=/dev/urandom | pv | dd of=/dev/null

 

command with pv:

sudo dd if=/dev/sdb | pv -s 2G | dd of=DriveCopy1.dd bs=4096

Output:

440MB 0:00:38 [11.6MB/s] [======>                             ] 21% ETA 0:02:19
posted by cskimair
:
os/Linux 2023. 12. 22. 22:43

https://velog.io/@yiseungyun/WSL2-VHD-%ED%8C%8C%EC%9D%BC-%EC%A4%84%EC%9D%B4%EA%B8%B0

 

[WSL2] VHD 파일 줄이기

WSL2를 이용하는데 docker compose up --build 명령어를 여러번 실행하고 중단하다보니 갑자기 C 드라이브에 빨간 불이 들어왔다. 용량이 부족한 문제로 더 이상 docker compose up --build 명령어를 실행할 수

velog.io

 

posted by cskimair
:
os/Linux 2023. 12. 22. 13:35

https://www.linux.com/topic/desktop/advanced-lm-sensors-tips-and-tricks-linux-0/

 

Advanced lm-sensors Tips and Tricks on Linux - Linux.com

I’ve been using the lm-sensors tool ever since CPUs became hot enough to melt themselves. It monitors CPU temperature, fan speeds, and motherboard voltages. In this two-part series, I’ll explain some advanced uses of lm-sensors, and look at some of the

www.linux.com

 

lm-sensors

sensors

sudo sensors-detect

sensors

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +21.0°C  (high = +89.0°C, crit = +105.0°C)
Core 2:       +23.0°C  (high = +89.0°C, crit = +105.0°C)

f71889fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.39 V
in1:          +0.91 V  (max =  +2.04 V)
in2:          +0.61 V
in3:          +0.97 V
in4:          +1.08 V
in5:          +0.90 V
in6:          +0.74 V
3VSB:         +3.36 V
Vbat:         +3.25 V
fan1:        1910 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +28.0°C  (high = +255.0°C, hyst = +251.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = thermistor
temp2:        +34.0°C  (high = +255.0°C, hyst = +251.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = thermistor
temp3:        +27.0°C  (high = +255.0°C, hyst = +253.0°C)
                       (crit = +255.0°C, hyst = +253.0°C)  sensor = transistor

 

posted by cskimair
:
os/Linux 2023. 10. 26. 10:10

-redmine 자동실행하게 할때는 아래 방법보다는 crontab방법이 좋을듯함.

https://geekflare.com/systemd-start-services-linux-7/

 

How to Auto-Start Services on Boot in RHEL/CentOS 7?

Wondering how to manage services in the background or on boot? The mechanism for managing and starting processes on boot has been changed. Until

geekflare.com

 

> https://coding-maggot.tistory.com/76

 

[Linux] systemd service 옵션/작성법/사용법(systemctl 명령어)

작년에 공부하면서 여기저기 호스팅 해두었던 사이트들을 오랜만에 접속해보니 연결이 끊겨있는 것들이 있었다. 그 중 Oracle freetier에서 nohup으로 실행을 시켜둔 게 있는데, 그 당시에도 간혹 연

coding-maggot.tistory.com

 

> https://doongdoongeee.tistory.com/m/155

 

리눅스 서비스(Linux Service) 파일 만들기

먼저 원하는 경로에 간단한 출력을 진행하는 쉘 스크립트 파일을 생성한다. (본 예제에서는 /home 경로에 생성한다.) /home/service_sample.sh #!/bin/bash echo -e "Service Test" i=1 while [ $i -lt 100 ] do echo $i i=$(($i+

doongdoongeee.tistory.com

 

> https://whitewing4139.tistory.com/171

 

40. Linux - 나만의 Service를 만들어 구동해보자2

지난 포스팅에서는 Linux 서비스에 필요한 쉘 스크립트(기타 실행파일도 가능하다), 서비스 사용 이유 및 service 파일에 작성하는 옵션에 대해 알아보았다. 이번 포스팅에서는 자체 쉘 스크립트를

whitewing4139.tistory.com

 

 

posted by cskimair
: