"Segmentation fault (core dumped)"
First, to terminate any process under unix, enter Ctrl-c (e.g., you find
your program is in an infinite loop).
ls
Compile and link all .cpp files (list as many .cpp files as you
have for your program) then create an executable file called a.out:
g++ file1.cpp file2.cpp
Execute your program:
a.out
Remove/delete a file, say file1.cpp:
rm file1.cpp
Copy file1.cpp and name it file2.cpp:
cp file1.cpp file2.cpp
View a file, say file1.cpp, at the screen, one screen at a time:
more file1.cpp
("space" for next screen, "enter" for next line, "q" to quit viewing)
Move (rename) a file, say file1.cpp to file2.cpp:
mv file1.cpp file2.cpp
Log out:
logout