FAQ
Linux server
- How do I connect to the Linux server with the command line?
- Run
ssh user@acad.kutztown.eduwhereuseris 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@acad.kutztown.edu:~/<destination file path>whereuseris 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@acad.kutztown.edu:~/<source file path> <destination file path>whereuseris 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
.bashrcin 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 unlimitedmake sure to compile the program with the
-gflagrun the program; a core file will be created in the current directory
run gdb with the compiled program and the core file
gdb PROGRAM COREType
wherein the gdb REPLType
quitto exit gdb