

Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


ls List command, it will show you the full list or content of your directory. cd cd [directory_name] It is used to change the current working directory. pwd It prints out the shell’s current working directory. Dove sono. --help It gives a short help text message for each command it follows. mkdir mkdir [options..] [directories..] It allows the user to create directories and set the permissions. You need to have enough permissions. rmdir rmdir [options..] [directories..] It allows the user to delete empty directories. touch touch [options..] [directories..] It allows the user to create an empty file or to modify the timestamps of a file. rm rm [options..] [directories..] It removes objects such as files from the file system. mv mv [options..] [source_file_name] [destination_file_name] It renames file directories and moves files from one location to another. cp cp [options..] [source_file_name] [destination_file_name] It is used to copy files or groups of files or directories. head head [options..] [file_name] It prints the first N lines of a given file. tail tail [options..] [file_name] It prints the last N lines of a given file. less less [options..] [file_name] It reads the contents of a text file one page at a time. more more [options..] [file_name] It reads the contents of a text file one page at a time. Similar to less but with fewer options. cat cat [options..] [file_name] + a few additional tricks
file file [options] filename It allows you to determine the actual type of the file independently on the extension. wc wc [options] filename It allows you to count newline, word, and byte of a given file. tr tr [options] set1 set2 Translating or deleting characters. sort sort [options] file_name It is used to sort a file , arranging the records in a particular order and print out the results on stdout. uniq uniq [options] [input [output]] It finds the unique lines in a given input and either reports or removes the duplicates lines. grep grep [options] patterns [file] It is used to search for a string of characters in a specified file and print out the results. sed sed [options] … [script] [input_file..] It can be used to modify files. awk awk [options] ‘program’ input-file1 input-file It is used for extracting and manipulating data from text files. ps You can determine your shell type. scp scp [options] [source] [destination] It is used to securely copy files and directories between remote and local systems.