Linux systems are open-source Unix-like operating systems used for many devices like computers, and serveres known for their security and versatility. Key characterstics of the linux systems are:
ls: show the list all the files and folders
ls -al: shows the list of files and folders including hidden ones
lscpu: display information about the CPU architecture
cd /path: changing the directory
cd ..: goes to one upward directory
mkdir dir_name: creating new folder
rm filename: delete file
rm -r foldername: delete directoy/folder
rm *: delet all the files in current directory
cp: copy file/s
mv: to moves or rename files (or directories)
chmod [option]... {mode | --reference=ref_file} file...: changes the access permissions of the named files
head [option]... [file]...: prints the first part (10 lines by default) of each file
tail [option]... [file]...: prints the last part (10 lines by default) of each file
tar -zcvf file_name.tar.gz directory_name: tar gzip compression
tar -cvf file_name.tar directory_name: tar compression
tar -zxvf file_name.tar.gz: extraction
tar -xvf file_name.tar: extraction
| Option | Full Name | Meaning |
|---|---|---|
| -z | --gzip | Specifies gzip format |
| -c | --create | Create a new compressed file |
| -v | --verbose | Output processing results |
| -f | --file | Compressed file name |
| -x | --extract | Extracting files from compressed file |