how to sync files in linux - command prompt?

dexterous

I see the following files in my directory -

-rw-rw-r-- 1 sjos sjos  401 Oct 12 15:29 Makefile
-rw-rw-r-- 1 sjos sjos  401 Oct 12 15:29 Makefile~
-rw-rw-r-- 1 sjos sjos  336 Oct 12 15:12 testIfaceIndex.c
-rw-rw-r-- 1 sjos sjos  336 Oct 12 15:12 testIfaceIndex.c~

My question is how can I get rid of the file Makefile~ and testIfaceIndex.c~? I have tried the command sync on the folder but it didn't work. how can I sync the files? What is the complete command to do so?

pl_rock

sync command flush file system buffers. for more info about sync see

man sync

When you use gedit as a editor then gedit create these file. These files are backup file of your original file with name ~. you can disable this in preference setting of gedit. change enter image description here

To

enter image description here

and reduce Autosave time. next time it will not create backup file.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to sync an app with Drive files by command?

How to align text by Linux command prompt?

What linux command will sync files betwen localhost and remote server?

sync 2 files on linux

How to start executables through command prompt with space named files and without command prompt waiting program to close?

How to run multiple JAR files at differnt locations from a command prompt

How To Rename The Extension of All The Files In A Directory Tree With Command Prompt

How to add all edited files in gitbash command prompt?

How to merge files in correct order using command prompt

How to decompile a jar into .java files from command prompt

How do I edit text files in the Windows command prompt?

How to delete files/subfolders in a specific directory at the command prompt in Windows

how to read directory (files are n in number) in command prompt using arguments

How to load files according to Created Date in Windows command prompt

How to delete all system files using command prompt

How do I rename a bunch of files in the Command Prompt?

How to copy files with only 1 extension and not double in command prompt

How do I rename files with list of names using command prompt?

How to check the BIOS version or name in Linux through a command prompt?

How to you configure the command prompt in Linux to show current directory?

How to alter stored procedure in a MySQL database using the Linux command prompt?

how to execute linux command in python which changes default prompt

How to display current path in command prompt in linux's sh (not bash)?

Command Prompt Scripting to rename files

Python files not executed by command prompt

How to open Command Prompt from Command Prompt

How to restart Command Prompt from Command Prompt

Clear console in Linux command prompt

Linux command line issue with prompt