About 357,000 results
Open links in new tab
  1. Linux: set date through command line - Unix & Linux Stack Exchange

    Mar 23, 2016 · I used the date command and time format listed below to successfully set the date from the terminal shell command performed on Android Things which uses the Linux Kernal.

  2. What does "--" (double dash / double hyphen) mean? - Unix & Linux …

    More precisely, a double dash (--) is used in most Bash built-in commands and many other commands to signify the end of command options, after which only positional ("non-option") arguments are …

  3. command line - How do I set time and date from the Internet? - Unix ...

    Firstly, if you want to change your timezone you can use: sudo dpkg-reconfigure tzdata To update the time and date from the internet on a Linux distribution that uses a modern version of systemd, you …

  4. How can I display the contents of a text file on the command line?

    Oct 11, 2016 · I would like to display the contents of a text file on the command line. The file only contains 5-6 characters. Is there an easy way to do this?

  5. How do I get the size of a directory on the command line?

    Feb 20, 2015 · I tried to obtain the size of a directory (containing directories and sub directories) by using the ls command with option l. It seems to work for files (ls -l file name), but if I try to get the s...

  6. command line - What does the ./ mean (dot slash) in linux? - Unix ...

    Oct 11, 2017 · The dot-slash, ./, is a relative path to something in the current directory. The dot is the current directory and the slash is a path delimiter. When you give the command touch ./a you say …

  7. How to check OS and version using a Linux command

    What is the Linux command to check the server OS and its version? I am connected to the server using shell.

  8. command line - Unix & Linux Stack Exchange

    How do I convert an epoch timestamp to a human readable format on the cli? I think there's a way to do it with date but the syntax eludes me (other ways welcome).

  9. How to remove a single line from history? - Unix & Linux Stack Exchange

    To remove a single line from the history file, use the -d option. For example, if you want to clear a command where you entered the clear-text password as in the scenario above, find the line number …

  10. Shell Syntax: How to correctly use - Unix & Linux Stack Exchange

    May 6, 2016 · Therefore, the following works without a backslash, as you can't end a command with a &&: echo 1 && echo 2 Here, you need the backslash: echo 1 2 3 \ 4 or echo 1 \ && echo 2 …