Development/Linux

[Linux] special symbols

oneonlee 2022. 4. 17. 15:34
반응형

special symbols

  • . : current directory
    • cp f1 ./f2 -- copy f1 to f2 in the current directory
  • .. : parent directory
    • cp f1 ../f2 -- copy f1 to f2 in the parent directory
  • > : standard output redirection
    • cat f1 > f3 -- display the content of f1 in f3 (same effect as “cp f1 f3”)
  • | : pipe. redirect the standard output of the first program into the standard input of the second program
    • cat f1 | more
  • * : match any file name
    • ls b* -- diplay all file/directory names that start with ‘b’
반응형