What does TAC do in Linux?

tac command in Linux is used to concatenate and print files in reverse. This command will write each FILE to standard output, the last line first. When no file is specified then this command will read the standard input.

What does touch do in Linux terminal?

The touch command is a standard command used in UNIX/Linux operating system which is used to create, change and modify timestamps of a file.

Which compression is best in Linux?

Use man utility for more details.

  • gzip file compression. The gzip tool is most popular and fast file compression utility in Linux. …
  • lzma file compression. …
  • xz file compression. …
  • bzip2 file compression. …
  • pax file compression. …
  • Peazip file compressor. …
  • 7zip file compressor. …
  • shar file compression.

What is PS EF command in Linux?

This command is used to find the PID (Process ID, Unique number of the process) of the process. Each process will have the unique number which is called as PID of the process.

How does grep work in Linux?

Grep is a Linux / Unix command-line tool used to search for a string of characters in a specified file. The text search pattern is called a regular expression. When it finds a match, it prints the line with the result. The grep command is handy when searching through large log files.

How do I open a subdirectory in linux?

Try any one of the following command:

  1. ls -R : Use the ls command to get recursive directory listing on Linux.
  2. find /dir/ -print : Run the find command to see recursive directory listing in Linux.
  3. du -a . : Execute the du command to view recursive directory listing on Unix.

How do I use linux?

Linux Commands

  1. pwd — When you first open the terminal, you are in the home directory of your user. …
  2. ls — Use the “ls” command to know what files are in the directory you are in. …
  3. cd — Use the “cd” command to go to a directory. …
  4. mkdir & rmdir — Use the mkdir command when you need to create a folder or a directory.
Like this post? Please share to your friends:
OS Today