Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Wednesday, August 17, 2022

biggest file in linux command

here are a few Linux console commands (bash commands) to help you to find some biggest files:

use the "find"

find . -type f -size +50M

find – is the command obviously ðŸ™‚
. – where to start the search
-type – a type of what to check
-size – Select files with a size below or an equal size



use the "du" and "sort"

du -h --max-depth=1 | sort -hr



links:
https://www.devopsroles.com/find-large-files-linux/
https://www.tomshardware.com/how-to/find-large-files-linux
https://www.cyberciti.biz/faq/linux-find-largest-file-in-directory-recursively-using-find-du/

Thursday, April 28, 2022

To check a Linux kernel

 Quick tutor on how to get data about Linux kernel

# uname -r
3.10.0–1062.el7.x86_64

# cat /proc/version
Linux version 3.10.0–1062.el7.x86_64 (mockbuild@x86–040.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5–39) (GCC) ) #1 SMP Thu Jul 18 20:25:13 UTC 2019

# hostnamectl | grep Kernel
Kernel: Linux 3.10.0–1062.el7.x86_64

Tuesday, April 12, 2022

screen Linux command

 This command is useful in cases where you need to leave some command in the running state, our command history is significantly important

Check if a system already running screens

screen -ls

Create/run a new screen console:

screen -S <screen-in-name>

Re-attach the screen:

screen -r <screen-in-name>

Kill screen session

screen -XS <screen-in-name> quit

useful links:
https://quickref.me/screen

Friday, March 25, 2022

Monday, August 9, 2021

check threads or core in Linux

 HW details on Linux (kernel):

echo "Threads/core: $(nproc --all)"            


lscpu | grep CPU


Add disk image to Windows OS on Proxmox

  1) Enter into the Proxmox console 2) Select the VM -> Hardware -> Add -> Hard Disk: 3) Configure the new disk image: 1. Select th...