FAQ
Linux server
- How do I connect to the Linux server with the command line?
- Run
ssh user@csitrd.kutztown.edu
whereuser
is your Kutztown user ID (the first part of your email address).
- Run
- How do I copy a file to the Linux server with the command line?
- Run
scp <source file path> user@csitrd.kutztown.edu:~/<destination file path>
whereuser
is your Kutztown user ID (the first part of your email address).
- Run
- How do I copy a file from the Linux server with the command line?
- Run
scp user@csitrd.kutztown.edu:~/<source file path> <destination file path>
whereuser
is your Kutztown user ID (the first part of your email address).
- Run
- How do I set up a safe alias for removing files?
- There is a file named
.bashrc
in your home directory. Add the following line to the end of that file:alias rm='rm -i'
- There is a file named
- How do I create a zip file on the Linux server?
- Run
zip <zip filename> file [files]
.
- Run
- Where is the public course material?
- The directory on the Linux server is:
/export/home/public/schwesin/cpsc328/
- The directory on the Linux server is:
- How do I find a segmentation fault?
set the core file limit:
ulimit -c unlimited
make sure to compile the program with the
-g
flagrun the program; a core file will be created in the current directory
run gdb with the compiled program and the core file
gdb PROGRAM CORE
Type
where
in the gdb REPLType
quit
to exit gdb