bash base
First of all, some simple tutorial that you can read: Bash for beginners Bash for beginners2
A list of useful commands that I use a lot of times:
- Use Tab to autocomplete the command or show a list of alternatives
ls -ltrhlist last modified files at the bottomcd some_other_directorychange directoryvim some_file_to_editmy favourite editor (vim tutorial). Of course, you can choose an other favourite editor on the terminal!cp somefile destinationcopy somefile to destinationrm some_fileremove some_filerm -r some_directoryremove some_directorymv something new_namemove something to new_name- Ctrl + C kill current running program
cat some_filedump some_file on the terminalpwdprint current directory nametail -f some_fileshow last few line of some_file, wait for new lines that are written by some other program to some_file (for example a simulation) and print them.tar xf filename.tar.whateverextracts the content of the archive in the current directory (it understand automagically the type of archive)tar cvjf newarchive.tar.bz2.willbeoverwritten folder1 file1 file2 ...compress the file/folder list in the new archive- Ctrl + R + some text to search a command in the commands history