Linux

Материал из theor
Перейти к: навигация, поиск

File commands

Rename or move

mv "file name1.txt" "file_name1.txt"
mv "file name*.txt" "file_name*.txt"

Archivators

Create zip

zip myzipfile.zip file1 file2 file3
zip -r compressed_filename.zip foldername

Unzip

unzip file.zip -d destination_folder

Extract tar.gz file

tar -zxvf {fileName}.tar.gz