Skip to content

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

  • Home
  • About
  • Linux Shell Scripting TutoriaL
  • RSS/Feed
  • Donations
  • Search

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

nixCraft

Tag: empty directory

Linux / UNIX: How To Empty Directory

last updated July 26, 2019 in Categories BASH Shell, Linux, UNIX

How do I empty a directory (delete all files) under Linux / Unix without deleting directory itself?

9 Comments

TCSH / CSH / C Shell Check Whether a Directory is Empty or Not

last updated July 5, 2011 in Categories UNIX

How do I check whether a directory is empty or not under Linux / UNIX using a TCSH / C shell script?

Removing a Directory In Linux

last updated December 15, 2010 in Categories Linux

How do I remove a directory in Linux using the shell prompt?

1 Comment

Cool Linux penguin shirt

FEATURED ARTICLES

  • 1
    30 Cool Open Source Software I Discovered in 2013
  • 2
    30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
  • 3
    Top 32 Nmap Command Examples For Linux Sys/Network Admins
  • 4
    25 PHP Security Best Practices For Linux Sys Admins
  • 5
    30 Linux System Monitoring Tools Every SysAdmin Should Know
  • 6
    40 Linux Server Hardening Security Tips
  • 7
    Linux: 25 Iptables Netfilter Firewall Examples For New SysAdmins
  • 8
    Top 20 OpenSSH Server Best Security Practices
  • 9
    Top 25 Nginx Web Server Best Security Practices
  • 10
    My 10 UNIX Command Line Mistakes

Sign up for my newsletter

Sign up for my newsletter



RSS Recently updated

  • Vi / Vim Save And Quit The Editor Command
  • Understanding /etc/passwd File Format
  • How to install and use Nginx on OpenSUSE Linux server
  • Debian / Ubuntu Linux Delete Old Kernel Images Command
  • How to generate RSS 2.0 feed quickly using Python
  • [How to] Linux Change or Rename User Name and UID
  • Bash Assign Output of Shell Command To Variable
  • Bash check if process is running or not on Linux / Unix
  • FreeBSD Find Out All Installed Hard Disk Size Information
  • How to delete empty lines using sed command under Linux / UNIX

Corporate Patron

  • Linode
  • Cloudflare
  • Prospect One
nixCraft ©2000-2019 nixCraft. All rights reserved.
  • PRIVACY
  • TERM OF SERVICE
  • CONTACT/EMAIL
  • DONATIONS
  • Search