First steps in bash

Basics

Task 1. Using ssh log onto lts.wmi.amu.edu.pl. If unsure how to do it try to find it online or consult the manpage.

Task 2. Using the id command find the names of groups you are a member of. Try to write a command that gives exactly the information you want.

man and info

Task 3. Using man or info find the option for gcc that optimizes the code for Intel Skylake processors.

Task 4. (homework) Take a quick look at the info help of coreutils. These are the basic tools used in bash.

Task 5. Skim through the man page of ls.

Task 6. List the contents of your home directory:

Task 7. Recursively list the contents of the directory /etc.

Task 8. Using pushd navigate in order to the directories:

Now go back in reverse order using popd.

Creating, copying and moving files

Task 9.

Task 10. (homework) Try to create a directory structure like in the following listing. You need not create it exactly the same way, as it can be a lot of work. Just make sure you at least know how to do it. The dates show the last modification time of the corresponding file. Similar listing can be created by the command tree -D.

.
├── [Jan  1  1980]  1980
│   ├── [Jan  1  1980]  1980.txt
│   ├── [Jan  1  1981]  1981.txt
│   ├── [Jan  1  1982]  1982.txt
│   ├── [Jan  1  1983]  1983.txt
│   ├── [Jan  1  1984]  1984.txt
│   ├── [Jan  1  1985]  1985.txt
│   ├── [Jan  1  1986]  1986.txt
│   ├── [Jan  1  1987]  1987.txt
│   ├── [Jan  1  1988]  1988.txt
│   └── [Jan  1  1989]  1989.txt
├── [Jan  1  1990]  1990
│   ├── [Jan  1  1990]  1990.txt
│   ├── [Jan  1  1991]  1991.txt
│   ├── [Jan  1  1992]  1992.txt
│   ├── [Jan  1  1993]  1993.txt
│   ├── [Jan  1  1994]  1994.txt
│   ├── [Jan  1  1995]  1995.txt
│   ├── [Jan  1  1996]  1996.txt
│   ├── [Jan  1  1997]  1997.txt
│   ├── [Jan  1  1998]  1998.txt
│   └── [Jan  1  1999]  1999.txt
└── [Jan  1  2000]  2000
    ├── [Jan  1  2000]  2000.txt
    ├── [Jan  1  2001]  2001.txt
    ├── [Jan  1  2002]  2002.txt
    ├── [Jan  1  2003]  2003.txt
    ├── [Jan  1  2004]  2004.txt
    ├── [Jan  1  2005]  2005.txt
    ├── [Jan  1  2006]  2006.txt
    ├── [Jan  1  2007]  2007.txt
    ├── [Jan  1  2008]  2008.txt
    └── [Jan  1  2009]  2009.txt