forked from p15670423/monkey
Linux: change location of hidden file/folder
This commit is contained in:
parent
eea5352084
commit
87bfe41c50
|
@ -1,35 +1,35 @@
|
|||
HIDDEN_FILE = '/var/tmp/.monkey-hidden-file'
|
||||
HIDDEN_FOLDER = '/var/tmp/.monkey-hidden-folder'
|
||||
HIDDEN_FILE = '$HOME/.monkey-hidden-file'
|
||||
HIDDEN_FOLDER = '$HOME/.monkey-hidden-folder'
|
||||
|
||||
|
||||
def get_linux_commands_to_hide_files():
|
||||
return [
|
||||
'touch', # create file
|
||||
'touch', # create file
|
||||
HIDDEN_FILE,
|
||||
'&&'
|
||||
'echo \"Successfully created hidden file: {}\" |'.format(HIDDEN_FILE), # output
|
||||
'tee -a', # and write to file
|
||||
'tee -a', # and write to file
|
||||
HIDDEN_FILE
|
||||
]
|
||||
|
||||
|
||||
def get_linux_commands_to_hide_folders():
|
||||
return [
|
||||
'mkdir', # make directory
|
||||
'mkdir', # make directory
|
||||
HIDDEN_FOLDER,
|
||||
'; touch', # create file
|
||||
'{}/{}'.format(HIDDEN_FOLDER, 'some-file'), # random file in hidden folder
|
||||
'{}/{}'.format(HIDDEN_FOLDER, 'some-file'), # random file in hidden folder
|
||||
'; echo \"Successfully created hidden folder: {}\" |'.format(HIDDEN_FOLDER), # output
|
||||
'tee -a', # and write to file
|
||||
'{}/{}'.format(HIDDEN_FOLDER, 'some-file') # random file in hidden folder
|
||||
'tee -a', # and write to file
|
||||
'{}/{}'.format(HIDDEN_FOLDER, 'some-file') # random file in hidden folder
|
||||
]
|
||||
|
||||
|
||||
def get_linux_commands_to_delete():
|
||||
return [
|
||||
'rm', # remove
|
||||
'-r', # delete recursively
|
||||
'-f', # force delete
|
||||
'rm', # remove
|
||||
'-r', # delete recursively
|
||||
'-f', # force delete
|
||||
HIDDEN_FILE,
|
||||
HIDDEN_FOLDER
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue