Skip to main content
Ctrl+K

Mastering Linux

  • Linux for end-user
    • Introduction to the shell
    • Using Manual pages
    • Useful commands
    • Filesystem and permissions
    • Scripting with BASH
  • Linux Administration
    • User management
    • Package management
    • Storage management
    • Logical Volume Management
    • Scheduling Tasks
    • Network Management
    • Logging
    • Time management
  • Linux Engineer
    • Systemd and SysVinit
    • Firewall Management
    • Advanced Network Management
    • Domain Name System
    • Network Services
    • Using iSCSI
    • Network File System (NFS)
    • Samba
    • SELinux
    • Building a package
    • Virtualization
    • Containers
  • Automation with Ansible
    • Introduction to Ansible
    • Maintaining an Inventory
    • Using Ansible Playbooks
    • Manage variables and inclusions
    • Implement task control
    • Implement Jinja2 templates
    • Using Ansible Roles
    • Ansible Vault
    • Ansible Galaxy
  • Scripting with Bash
    • Introduction to Bash
    • Redirects and Pipes
    • Using variables
    • Conditional structures
    • Loops for, while and until
  • Blog

Posts tagged shell

How to create a file on the command line

  • 12 November 2023
  • Editor
  • Command Line
  • file command line shell

Sometimes you need to create a file on the command line. This can be done using the touch command which is available on most Unix-like operating systems. There are also other ways to create a file and some of them are listed below.

Read more ...


By Editor

© Copyright 2025, Mastering Linux.