Sem I (Prak Grund Infor) - N3 Flashcards
Remove directory
rmdir
Delete files and subdirectory and files. “No Warning if directory contains files.”
rm
Reverse the files’ order of listing. (BASH)
ls -r
Display the content of a file.
cat
Arrange a string of characters into a chained list. IT is?
Catenate
Creates the file named “filename.txt” and allows user to enter text into the file.
cat > filename.txt, does what?
Adds the content to filename1 and filename3 to a newly created file called filename3.
“cat filename1.txt filename2.txt > filename3.txt” does what?
Make a directory where parents don’t exist. Create a directory called “folder1” inside a directory called “parent”
mkdir -p parent_dir/child_dir/grandchild_dir
Display not only the contents of the specified directory but also the contents of all its subdirectories, and their subdirectories, and so on, in a recursive manner.
ls -R
Renames files and folders oder Verschieben von Dateien/Verzeichnissen.
mv
Suppose you have a file named file.txt in the directory /home/user/documents and you want to move it to the directory /home/user/archive.
mv /home/user/documents/file.txt /home/user/archive/
Rename the file while moving it by specifying a different name in the destination path.
mv /home/user/documents/file.txt /home/user/archive/new_name.txt
Move multiple files at once by specifying multiple source files followed by the destination directory.
mv file1.txt file2.txt /home/user/archive/
Move the file and ask before replacing the existing file. (BASH)
mv -i
Move the file and force replacing the existing file.
mv -f
Displays the contents of text fil and has more features.
less
Displays the contents of text files and has less features.
more
photo manager for organizing, editing, and sharing photos.
shotwell
Show Calender (Bash)
cal
Enthälten ausführbare Standard-Kommando-Programme (Binaries) wie ls oder cp. Folder?
/bin