ls -lh
Display file and subdirectory metadata, which includes file type, file access permissions, hard link count, file owner, file’s group, modification date and time, and filename in a human readable format
ll
means ls -l
alias
An alias at the Linux command line is simply a short command that represents another, typically complicated, command
file command
shows you the type of file
file globbing/wildcard expansion
using * or ? with a filename in a command
represents any alphanumeric character
? in file globbing
a single character for file globbing
^ in file globbing
negate the character selection by putting it before that character
how to zip a file?
gzip [filename]
zip [filename]
bzip2 [filename]
xz [filename]
cpio -o
cpio used to make archive files
-o flag Creates an archive by copying files into it. Called copy-out mode.
cpio -i
-i flag Copies files from an archive or displays the files within the archive, depending upon the other options employed. Called copy-in mode.
cpio –no-absolute-filenames
Designates that only relative path names are to be used. (The default is to use absolute path names.)
how to create a tarball
tar -c
Creates a tar archive file. The backup can be a full or incremental backup, depending on the other selected options.
tar -j
Compresses tar archive file into a tarball using bzip2.
tar -J
Compresses tar archive file into a tarball using xz.
tar -z
Compresses tar archive file into a tarball using gzip.
tar -f
designates the archive filename
what is the sticky bit?
compression tools
archiving tools
tools that do compression AND archiving
SUID
SGID