2016-05-14 Python Check file is exists with python 123456import osif os.path.exists('/path/to/file'): print('The file exists!')else: print('The file does not exist.') Newer How to compress and decompress files on Linux? Older how to show a file content as text on Linux