Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for file

November 19, 2019

Tail A File in Windows Server

Linux has tail command. What about Windows? You can use Powershell to tail a file.

Get-Content myLog.log –Wait

Get-Content myLog.log –Wait

August 19, 2019

Convert File to UTF-8

Here’s how to convert multiple files to UTF-8 format.

for file in *.csv; do
    iconv -f ascii -t utf-8 "$file" -o "${file%.txt}.utf8.csv"
done

for file in *.csv; do iconv -f ascii -t utf-8 "$file" -o "${file%.txt}.utf8.csv" done

July 4, 2019

Matrox Monarch Configuration

You can import the Matrox Monarch HD configuration on boot up from a web page. Go to:

Command Center > Automatic Configuration.
Type in URL Address starting with https.
Check "Load settings on device reboot."
You can either power off the device or hit reset.
Holding reset for more than 5 seconds does a factory reset.
On next bootup, device will have configuration contained from the remote file.

Command Center > Automatic Configuration. Type in URL Address starting with https. Check "Load settings on device reboot." You can either power off the device or hit reset. Holding reset for more than 5 seconds does a factory reset. On next bootup, device will have configuration contained from the remote file.

June 12, 2019

Crontab File

How to load crontab from file.

crontab /path/to/file.txt

crontab /path/to/file.txt

Save crontab to a file.

crontab -l > /path/to/file.txt

crontab -l > /path/to/file.txt

April 1, 2019

Find the Biggest File

Find the biggest files in the current directory. Sort by from large to small. Display only the top 20. Display in human readable format.

find -type f -exec du -Sh {} + | sort -rh | head -n 20

find -type f -exec du -Sh {} + | sort -rh | head -n 20

  • « Previous Page
  • 1
  • 2
  • Cloud
  • Linux
  • Git

Copyright © 2012–2021