This command creates a compressed file called "random_command" containing a randomly selected file from the current directory, excluding files with a period in their name.
tar -cvzf random_command $(ls | grep -v "\." | sort -R | head -n 1)