My IT Notes
  • Home
  • Linux
  • PowerShell
  • Microsoft
  • VMware
  • Cisco
  • Exchange
  • My Credentials

Tag Archives for file

LINUX – Find what package a file belongs

  • Posted on 05/03/2016
  • by AlfPi

Debian/Ubuntu:

dpkg -S filename
i.e.:
# dpkg -S /etc/gimp/2.0/controllerrc
gimp-data: /etc/gimp/2.0/controllerr
c

to achieve the same thing in RedHat/CentOS distros:
rpm -qf filename
i.e.:
# rpm -qf /etc/httpd/
httpd-2.4.6-40.el7.centos.x86_64

0
0
  • Categorized in CentOS, Debian, Linux, Red Hat
  • Tagged with dpkg, file, package, query, rpm
  • Leave a comment

create empty file with specific size

  • Posted on 31/07/2011
  • by AlfPi

To create 1MB file type in:
fsutil file createnew FileName Size

where size is calculated:
1MB = 1024 * 1024 = 1048576

so

fsutil file createnew C:tempfilename 1048576

0
0
  • Categorized in DOS, Windows Server
  • Tagged with create, dos, dumb, empty, file, size, specific, windows
  • Leave a comment
Users Online
2 Users Online
Reference Guides
Debian Reference
Shell Scripting Tutorial
Command reference
Great VMware resource
RegEx Tester and Builder
Advanced Bash Scripting Guide
Open Source Research and Reference
Recent Posts
  • VMware – esxtop – troubleshooting VM CPU performance
  • Linux – Network Manager – change static IP via nmcli
  • Linux – Adding and extending LVM disk
  • PS – Certificate Authority Backup Script
  • PowerShell – event ID email monitor
  • Wireshark – how to capture relevant data
  • ARP – view and clear cache
  • Exchange online – Office 365 – PowerShell
  • VMware – capturing network packets
  • PowerShell – get windows 10 versions
Tag Cloud
access denied CentOS cisco CompTIA config console cpu debian DNS esxi exchange firewall home server host HP install linux Linux Server Professional Certification LPIC monitoring mysql network nginx performance pi postfix powercli powershell raspberry pi router samba server 2003 source ssh ssl syslog troubleshooting ubuntu udoo vm vmware volume windows wordpress WSUS
Categories
  • android (1)
  • ASA (3)
  • CentOS (5)
  • Certification (6)
  • Cisco (11)
  • Debian (68)
  • DOS (4)
  • ESXi (12)
  • Exchange (17)
  • Fedora (4)
  • Hardware (4)
  • HP (4)
  • Linux (127)
  • Microsoft (11)
  • NUC (2)
  • OpenWRT (3)
  • PowerShell (49)
  • Raspberry PI (39)
  • Red Hat (12)
  • TP-LINK (3)
  • ubuntu (17)
  • UDOO (35)
  • Uncategorized (2)
  • VMware (21)
  • Windows (9)
  • Windows 10 (2)
  • Windows Server (35)
Most Liked Posts
  • Linux - How to check/enable promiscuous mode (100)
  • ESXI - How to find out VMs IP address from SSH (2)
  • Install and setup Syslog-ng with PHP-SYSLG-NG front end (2)
  • PowerShell - Read-Host values into an Array (2)
  • DEBIAN 8 - How to install MySQL server 5.6 or 5.7 (1)
  • How To Configure BIND as a DNS Server (1)
  • Linux - RDP client with RD Gateway (1)
  • Linux Mint - Sound source switcher (1)
  • Microsoft Exchange - Removing an Auto-Mapped Mailbox from Outlook (1)
  • NGINX - (13: Permission denied) while connecting to upstream node.js server (1)

© 2021 My IT Notes