• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for June 2018

Unable To Remove Files From Directory with Error “Argument list too long”

by admin

The Problem While trying to list or interact with large number of files from command line it results with following error: $ ls -l *.xml | wc -l bash: /bin/ls: Argument list too long 0 $ rm *.xml bash: /bin/rm: Argument list too long or when trying to delete large number of files using find […]

Filed Under: Linux

How to disable write access to USB devices using “hdparm” tool

by admin

The hdparm Command hdparm provides a command line interface to various kernel interfaces supported by the Linux SATA/PATA/SAS ‘libata’ subsystem and the older IDE driver subsystem. It should also work with most USB drives as well since they appear as SATA devices to the kernel. The hdparm command is standard on most Linux distributions. You […]

Filed Under: Linux

How To Force User/Group Ownership Of Files On A Samba Share

by admin

The Ask You have a disk directory shared among Linux and Microsoft Windows clients. Multiple users need access to this directory share, but when files are created or modified from the Linux clients the Linux file permissions are applied making it difficult or impossible for the Windows clients to access these files. You would like […]

Filed Under: Linux

Linux Interview Questions – Basic File and Directory Permissions

by admin

What are Basic Linux File permissions? Linux, like UNIX, is a multi-user system, and file permissions are one way the system protects against malicious tampering. One way to gain entry when you are denied permission is to su to root. Keep in mind, whoever knows the root password has complete access. But switching to the […]

Filed Under: Interview Questions, Linux

What are Shell Scripts? How to Create Shell Scripts?

by admin

What Is a Shell? A shell is a program that provides an interface between a user and an operating system (OS) kernel. An OS starts a shell for each user when the user logs in or opens a terminal or console window. What Is a Shell Script? A shell script is a file that contains […]

Filed Under: DevOps, Linux, Shell Scripting

« Previous Page

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright