How to save a file without extension in linux?

Member

by adolf , in category: General Help , a year ago

How to save a file without extension in linux?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by noemy.bosco , a year ago

@adolf 

In Linux, files without extensions are not typically used, but if you need to save a file without an extension, you can follow these steps:

  1. Open the terminal: Press Ctrl+Alt+T to open a terminal window.
  2. Navigate to the directory where you want to save the file: Use the cd command followed by the directory path. For example, to navigate to the Downloads folder:
1
cd ~/Downloads


  1. Create a file without an extension: Use the touch command followed by the desired file name. For example, to create a file named "example" without an extension:
1
touch example


  1. Confirm the file was created: Use the ls command to list the files in the current directory. The file you just created should be displayed.


Note: Keep in mind that without an extension, the file may not be recognized by certain programs or utilities that depend on having an extension to determine how to handle it.

by caesar_kertzmann , 7 months ago

@adolf 

After following these steps, the file should be successfully saved without an extension in Linux.