Some easy to learn terminal commands are:
- cd (change directory)
relative directories: cd my/Relative/Directory
absolute directories: cd /my/Absolute/Directory
one step up: cd ..
stay in the same place: cd . - ls (list files)
list all files: ls
list files starting with an 'a': ls a*
list files ending with '~': ls *~ - cp (copy files)
copy a file to somewhere: cp file /destination/of/that/file
copy a directory to somewhere: cp -r dir/ /destination/of/that/dir/ - mv (move or rename files)
move a file: mv file /destination/of/that/file/
rename a file: mv file newFileName - rm (delete a file)
delete a single file: rm file
delete a single directory with contents: rm -r directory
delete all files in the current directory that start with 'a': rm a* - man (open the MANual of a given program)
for example: man ls - mkdir (make a directory)
relative: mkdir newDirectory
absolute: mkdir /position/of/new/Directory/newDirectory
More commands can be found on
this PDF.
If you want to get into bash programming, first place to look would be the bash manpage, second would be Google. Of course you can buy books, but especially for Linux, I've never found it necessary. The net is so much more universal and it's cheaper too :-D
Greetings,
Nepomuk