This means you can compress several files and directories into a single file. exit return key logout return key For self-written scripts, you can use: : gtar (Archivierungsprogramm) This command allows you to archive files or directories. env return key exit or logout You can terminate your SSH session with these commands. Sometimes you will need these for CGI scripts. env (environment) This command displays the environment variables on our server, for example, the time zone, the currently active shell or the operating system being used. If no file or directory name is specified via the current directory is used. r size specification also for illegible directories and files that cannot be opened. The command structure is: du The most important command parameters are: -s only the total sum. diff file1 file2 du (disk usage) This command shows you the hard drive space used by directories and files in blocks with each block consisting of 512 bytes. It shows the lines that are different for both files. For example: cp file name directory name diff This command makes it possible to compare two files. The command structure is: chmod rights assignment file name Different access rights, particularly r (read), w (write) and x (execute), can be set individually for u (user), g (group) and o (others) As an alternative to the aforementioned symbolic specifications, the access rights can also be specified as octal numbers (for example, 755).Ĭp (copy) You can copy files with this command. chmod (change mode) With this command, you can change the access rights for a file. In contrast to the DOS command, a space must be entered between cd and. In order to change to a sub-directory, enter the command cd Directory name return key In order to change to a superordinate directory, enter the command cd. If the content of File1 should be appended to the content of File2, ">" will need to be used instead of ">"." cd (change directory) This command allows you to change to superordinate and subordinate directories. cat file1> file2 copies the content in File1 to File2 and also creates a new File2 if necessary. For example: cat filename displays the content of the file on your screen. Cat (concatenate) With this command, you can display the content of files on the screen or have them written to a different file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |