answersLogoWhite

0

2>/dev/null

User Avatar

Rhea Mraz

Lvl 10
3y ago

What else can I help you with?

Related Questions

What do you use to forward errors to a file?

To forward errors to a file in a command-line environment, you can use the redirection operator 2> followed by the filename. For example, in a Unix-like shell, you can run a command like command 2> error.log to redirect standard error output to error.log. In Windows Command Prompt, a similar command would be command.exe 2> error.txt. This approach captures any error messages generated by the command into the specified file for later review.


How do you edit a file in UNIX?

To edit any file in Unix, use a file editor; there are several, including the venerable 'vi' program or 'vim', pico, nano, etc.


Can you use a DOS formatted floppy in UNIX?

Yes you can. Unix understands both FAT32 and NTFS file systems.


What file extensions are used to identify command shell scripts?

For windows, you might use .cmd, .bat as common file extensions. Unix doesn't use file extensions as associations, so no file extension needs to be used in the Unix environment. A shell script in Unix is simply a text file with any name that is readable and executable. However, file extensions are typically used in Unix as a documentation aid that states that the file is a shell script. Common extensions are .sh, .csh, .ksh, .tcsh, .zsh, etc.


What is the use of the .forward file in a Linux system?

The .forward file is used to forward email sent to one account to the address specified in the file.


Record your login session into a file in UNIX?

Use the 'script' command; it captures everything you are doing and stores it into a file.


What file system does Solaris use natively?

Solaris employs the file system called UFS (UNIX file system) for its native file system type.


How do you change the owner of a file in Unix?

You use the 'chown' command. You must be the owner of the file to do this or the super-user to change ownership.


How can you make a file in c language read only?

In UNIX: use function chmod


How do you convert files from a DOS to UNIX?

In some Unix and Linux systems there is a command called 'dos2unix' that will do the conversion automatically. If there isn't such a utility on your system you can use the 'tr' translate command to do the translation: tr -d '\015' < windows-file > unix-file which is essentially what dos2unix will do.


How do you send a file from Windows to a Unix printer I can send the file to the Unix itself but I need to be able to send a file from Windows straight to a Unix printer Does anyone know how?

There are several ways. One is to have Samba configured on the Unix system so that the Windows system has access to it. Another way is to install the lpr service for windows (most Windows servers now have that service as an installable service). 'lpr' is the Unix printing spooler which would allow you to use the lpr command in windows to print to a Unix printer.


How do you enter to a file in unix?

Not sure what you mean by enter a file; you could use an editor, such as vi, emacs, nano, pine, etc. to edit it.