Bash: Unterschied zwischen den Versionen

Aus robopagex.com
Zur Navigation springen Zur Suche springen
Zeile 12: Zeile 12:
 
  '''Everything is a file'''
 
  '''Everything is a file'''
 
  '''255 Byte'''
 
  '''255 Byte'''
  '''On Linux: The maximum length for a file name is 255 bytes.'''
+
  The maximum length for a file name is 255 bytes.
  '''The maximum combined length of both the file name and path name is 4096 bytes.'''
+
  The maximum combined length of both the file name and path name is 4096 bytes.
  '''This length matches the PATH_MAX that is supported by the operating system.'''
+
  This length matches the PATH_MAX that is supported by the operating system.

Version vom 21. Februar 2022, 17:24 Uhr

Script

$ type script
$ chmod +x script
$ ./script
$ .script
$ source script
$ bash script
#!/bin/bash

Command Line

Everything is a file
255 Byte
The maximum length for a file name is 255 bytes.
The maximum combined length of both the file name and path name is 4096 bytes.
This length matches the PATH_MAX that is supported by the operating system.