The Rm Command | Computing - Faculty Of Mathematics

skip to content University of Cambridge
  • Study at Cambridge
  • About the University
  • Research at Cambridge
Search site Home
  • Study at Cambridge
  • Undergraduate
    • Undergraduate courses
    • Applying
    • Events and open days
    • Fees and finance
  • Postgraduate
    • Postgraduate courses
    • How to apply
    • Postgraduate events
    • Fees and funding
  • International students
  • Continuing education
  • Executive and professional education
  • Courses in education
  • About the University
  • How the University and Colleges work
  • Term dates and calendars
  • History
  • Map
  • Visiting the University
  • Annual reports
  • Equality and diversity
  • News
  • A global university
  • Events
  • Public engagement
  • Jobs
  • Give to Cambridge
  • Research at Cambridge
  • For staff
  • For Cambridge students
  • For alumni
  • For our researchers
  • Business and enterprise
  • Colleges & departments
  • Email & phone search
  • Give to Cambridge
  • Libraries
  • Museums & collections
Faculty of Mathematics Login

Computing

  • Home
  • Current Students
    • Undergraduate Mathematics
    • Part III (MMath/MASt)
    • Postgraduate
    • Lecture Lists
    • NST Mathematics
    • Student Representation
    • Careers for Mathematicians
    • Careers Resources
  • Prospective Students
    • Undergraduate Admissions
    • Undergraduate Open Days
    • Part III (MASt/MMath)
    • Postgraduate Study
    • Mathematics for Natural Sciences Tripos (NST)
    • Careers for Mathematicians
  • Research
    • Overview
    • Applied Mathematics and Theoretical Physics
    • Pure Mathematics and Mathematical Statistics
    • Seminars
    • Features
  • Opportunities
    • Vacancies
    • Industrial Collaboration
    • Internships
    • Careers for Mathematicians
    • Summer Research in Mathematics: CMP and Research in the CMS
  • Outreach
    • Mathematics for all - outreach overview
    • Events
  • Internal
    • Maths IT Policy
      • Logging
      • Moving / disconnecting computers
    • Internal overview
    • Administration and Facilities
    • Bulletins
    • Computing and IT
      • Getting started with computing in Maths
      • AV facilities
        • Skype screen sharing
        • Streaming and recording events
          • Recording with the camcorder
          • Streaming from MR2 to YouTube
          • Viewing and editing streams
      • New research students
      • Backups
        • About Maths Backups
        • Laptop Data Backup Services
        • Restoring files
        • Synchronising Devices
          • Unison
          • WinSCP
      • Collaboration and file sharing
        • File synchronisation with OnTheMove
          • Synchronize onthemove.maths to Dropbox
        • Google Calendar
        • Sending/receiving large files using ZendTo
      • Email
        • Being ex-directory
        • Mutt
        • Phishing
        • Pine
          • Maths Pine FAQ
          • Pine configuration
        • Setting your From address
        • Signatures
        • Spam
        • Thunderbird
        • Troubleshooting email problems
          • Problems with forwarding email from Exchange On Line to Gmail
      • Help and assistance
        • Can't log in
        • Common Windows Issues
        • Common remote working issues
        • Common unix issues
        • How to Get Help
          • Effective problem reports
          • IT Emergencies
          • The IT Team
        • Training courses
      • Managed Windows System (UMD) PS staff
        • Professional Services UMD
        • Receiving your UMD
        • Network Issues
        • Getting Started
        • Printing
        • Maths VPN
        • Setting up Outlook
        • Shared Data Areas
        • Software
      • Infoscreens
        • For Dept Info Managers
        • For Series Managers
      • Quick service guide
      • Laptops/own computers
        • Laptops for PhD students
        • Printing
          • Mac OSX
            • Generic manual printer setup
            • Mac OSX 10.12
            • Mac OSX 10.15
            • Mac OSX 10.4
            • Mac OSX 10.5
            • Mac OSX 10.5/10.6 issues
            • Mac OSX 10.6 and 10.7
            • Mac OSX 10.8
          • Ubuntu Linux
          • Windows 8 and 10 - alternative version
          • Windows 8 and 10
        • Troubleshooting
          • Network Time config
        • Useful software to install
          • For Macs
          • For Windows
        • Wired eduroam
          • WIndows 10/11
          • Windows 10
          • Wired eduroam for macOS
        • Wireless connections
          • eduroam
        • Access to Maths home directory
      • Leaving the Faculty: IT
        • Collaborator Access
        • Research Collaborator
      • Maths Linux System
        • Access to the maths linux system
        • Changing Passwords
        • IT rules and guidelines
        • Command Line
          • Changing shell
          • Common Unix Commands
          • Customising your setup
          • Shell scripts
          • Tools and Shortcuts
        • File Operations
          • File Access Permissions
          • File format conversions
          • File transfer - Linux
          • File types - Linux
          • Listing files (ls)
          • Locating Files
          • Packaging and compressing files
          • Removing files (rm)
          • Working with PDF files
        • Graphical Desktop
          • .xsession files
          • Customising your desktop
          • Monitors
          • Screenshots
          • Troubleshooting
          • Working with graphics
          • Xubuntu 20.04 focal FAQ
          • Xubuntu 22.04 jammy FAQ
          • Xubuntu Desktop
        • Killing Stuck Processes
        • Text Editors
          • Emacs
          • Gedit
          • Kate
          • Pico
          • Vim
      • Mailing lists
        • Creating lists
        • List membership
      • Passwords
      • Printing
        • Custom print media
        • From Emacs
        • From Maths desktops
        • Linux scanning
        • Posters
        • Printing Guidelines
        • Problem solving
          • PDF font issues
          • Printer errors
          • Resetting Printers
      • Profile pages
      • Purchasing IT equipment
        • Grant items
        • Standard provision
      • Remote access
        • Copying Files Over The Network
        • General information and common problems
        • Logging into CMS computers remotely
          • Hotdesk
            • Hotdesk FAQ
        • Map drive to Sharepoint
        • Maths VPN service
        • Microsoft Remote Desktop
        • Network Speed
        • VNC with an ssh tunnel
        • ssh (Secure Shell)
          • Messages and troubleshooting
          • Tunnelling
          • Usage and options
      • Scientific and High Performance Computing (HPC)
        • Faculty HPC System "Swirles"
        • Faculty HPC system - fawcett
        • HPC User Gatherings
        • Number-crunching jobs
        • Queuing system on desktops and Beehive
        • Minimal Slurm FAQ
      • Software
        • Dropbox for Linux
        • Installing/requesting new software
          • Installing Software - Worked Example
          • User Maintained Software
        • Mathematical packages
          • FreeFem++
          • GAP - Groups, Algorithms and Programming
          • GNU Scientific Library
          • MAGMA
          • Macaulay 2
          • Maple
          • Mathematica
            • Installing Mathematica on your own computer
            • Mathematica troubleshooting
            • Running Mathematica Batch-files in the Background
          • Matlab
            • Installing Matlab on your own computer
          • OpenFOAM
          • PARI-GP
        • TeX and LaTeX
          • Custom Fonts
          • Custom Packages
          • Frequently Asked Questions
          • Maths Letterhead
          • Putting TeX/LaTeX on the Web
        • Zoom
          • Frequently Asked Questions
          • Inter-institution zoom pool
        • Python
      • Storage
        • Disk-hosting Service
        • File storage areas
        • Home Directory Quotas
        • Home directory paths
        • Managing your disk space
      • UIS Systems
      • Web editing
        • Editing Maths websites
          • Drupal demo - pages to copy
        • Firefox
          • Error message on opening
        • Style Guide
        • Validating web pages
        • Your own pages
          • Publishing video and audio
          • Raven Access Control
          • SSI (Server Side Includes)
        • Web page policy
      • Admin staff
      • Ejournal access
      • Windows Users
        • Getting started with Windows in the CMS
        • Information about the Maths Windows computer network
        • Windows file storage and network drives
        • How to read Winmail.dat attachments
        • Remotely Connecting to your N and Role Drives
        • PuTTY, a Windows SSH client
        • Setting up WinSCP to view Maths files remotely
        • Winscp sync
      • Ergonomics
      • FAQ
      • Policies
        • Downtime
        • Friendly Probing
        • Hardware provision
        • Network use
        • Orphaned data
        • Personal device support
        • Privacy
        • Shutdowns and Reboots
      • Acceptable Use Policy
      • For Research Groups
      • UMD Devices
    • Degree Committee and Postgraduate Education
    • Directors of Studies
    • Postdocs
    • Faculty Board
    • Research Facilitation
    • Teaching and Examining
    • Wellbeing
  • About Us
    • Contacts
    • Events
    • News and Announcements
    • Features
    • The Departments
    • Alumni and Friends
    • People
    • Women in Mathematics
    • Mathematics in Cambridge
The rm command
  • Computing
  • Internal
  • Computing and IT
  • Maths Linux System
  • File Operations
    • File Access Permissions
    • File format conversions
    • File transfer - Linux
    • File types - Linux
    • Listing files (ls)
    • Locating Files
    • Packaging and compressing files
    • Removing files (rm)
    • Working with PDF files
  • Access to the maths linux system
  • Changing Passwords
  • IT rules and guidelines
  • Command Line
  • Graphical Desktop
  • Killing Stuck Processes
  • Text Editors
The rm command

The rm command is used to delete files.

  • rm -i will ask before deleting each file. Some people will have rm aliased to do this automatically (type "alias" to check). Consider using rm -I instead, which will only ask once and only if you are trying to delete three or more files.
  • rm -r will recursively delete a directory and all its contents (normally rm will not delete directories, while rmdir will only delete empty directories).
  • rm -f will forcibly delete files without asking; this is mostly useful if you have rm aliased to ``rm -i'' but want to delete lots of files without confirming each one.

Removing troublesome files

Files with spaces or odd characters Put single quotes round the filename to hide the space from the shell, you could escape the space with \ if you prefer. Or just start typing the name and hit Tab and the shell will do this for you. For a filename which begins with a dash (-) you also need to precede the name with ./ to prevent it being treated specially. No such file or directory If this happens when trying to delete a file with a long name, it was probably displayed in truncated format. Press Tab to ask the shell to auto-complete the filename for you. Device or resource busy You can't delete a file which is in use. Reboot the computer and try again. Or try to track down the processes which are using the file. /usr/sbin/lsof filename ps auxwww | grep process_id # If the processes belong to you and you don't mind killing them kill process_id # Be more emphatic kill -9 process_id
    Faculty of Mathematics,Wilberforce Road,Cambridge CB3 0WA,United KingdomContact usPrivacy policy

    Forthcoming Seminars

    • DAMTP Seminars
    • DPMMS Seminars
    • Statistical Laboratory Seminars
    • Isaac Newton Institute Seminars

    News, Announcements and Events

    • News and Announcements
    • Events

    Social media

    • Instagram
    • LinkedIn
    • YouTube
University of Cambridge

© 2025 University of Cambridge

  • Contact the University
  • Accessibility
  • Freedom of information
  • Privacy policy and cookies
  • Statement on Modern Slavery
  • Terms and conditions
  • University A-Z

Study at Cambridge

  • Undergraduate
  • Postgraduate
  • Continuing education
  • Executive and professional education
  • Courses in education

About the University

  • How the University and Colleges work
  • Give to Cambridge
  • Jobs
  • Map
  • Visiting the University

Research at Cambridge

  • Research news
  • About research at Cambridge
  • Public engagement
  • Spotlight on...

Từ khóa » Xóa Rm