Despite the popularity of window managers that offer graphical user interfaces, the best way to search for files in Linux still requires a shell. The find command, with its myriad options and switches, offers the most powerful and precise features to surface what you're looking for.
- How To Find Solaris Server Version
- How To Find Solaris Version And Patch Level
- How To Find Solaris Version Online
- How To Find Solaris Server Version
How to Find the Version of the Oracle Solaris OS That Your System Is Running. To see the version of Oracle Solaris software that is running on your system, type either of the following commands. The cat command provides more detailed information. $ cat /etc/release. Learn Oracle Weblogic Server Administration. If you want to learn Oracle WebLogic Server Administration with tons of additional features like Live Interactive Sessions, Life time access to membership portal, Free re-taking sessions for next one year, Dedicated Machine to practice, On Job Support and much more. For this statement '-version' is specific to the Gnu version of sed.' , does it mean that 1. We can see the sed version only on non solaris unix machines? We cant have multiple versions of sed on a single solaris machine. Here are a few ways to find out which Linux distro you are using: From the Boot Time messages. Fire up your favorite terminal program and type in the following. Dmesg head -1. The output would be similar to: Linux version 4.9.0-5-amd64 (email protected) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04). We can use the command “nfsstat” to find the NFS version of the server/client. 1) Find NFS server version. This can be found as follows. # nfsstat –s-s: Print only server-side statistics. The default is to print both server and client statistics. Sample Output could be, Server nfs: calls badcalls publicv2 publicv3 4330692 0 0 0 Version 2: (0 calls) null getattr setattr root lookup readlink read 0 0% 0 0% 0 0% 0 0% 0 0% 0 0% 0 0%. Distribution Information. Another solution that may work on any linux distributions is lsbrelease -a. And the uname -a command shows the kernel version and other things. Also cat /etc/issue.net shows your OS version. This file shows in the telnet command when you want to connect to the server.
All modern Linux distributions support find from the shell. Access the shell (sometimes called the terminal window) by clicking the relevant icon or pressing Ctrl+Alt+T.
The 'find' Command
How To Find Solaris Server Version
![Version Version](/uploads/1/2/4/8/124857699/653732533.jpg)
The command used to search for files is called find.
The basic syntax of the find command is:
The currently active path marks the search location, by default. To start searching the whole drive you would type the following:
If, however, you want to start searching for the folder you are currently in then you can use the following syntax:
When you search by name across the whole drive, use the following syntax:
- The first part of the find command is the find command itself.
- The second part is where to start searching from.
- The next part is an expression which determines what to find.
- Finally the last part is the name of the thing to find.
Search Location Shortcuts
The first argument after find is the location you wish to search. Although you may specify a specific directory, most people use a metacharacter to serve as a substitute. The three metacharacters that work with this command include:
- Period: specifies the current and all nested folders
- Forward Slash: specifies the entire filesystem
- Tilde: specifies the active user's home directory
Searching the entire filesystem is likely to generate a lot of access-denied errors. Run the command with elevated privileges (e.g., by using sudo), if you need to search in places your standard account normally cannot access.
Expressions
The most common expression you will use is -name. The -name expression lets you search for the name of a file or folder.
![How To Find Solaris Version How To Find Solaris Version](/uploads/1/2/4/8/124857699/585693504.png)
There are, however, other expressions you can use:
How To Find Solaris Version And Patch Level
- -amin n: The file was last accessed n minutes ago
- -anewer: The file was last accessed more recently than it was modified
- -atime n: The file was last accessed more n days ago
- -cmin n: The file was last changed n minutes ago
- -cnewer: The file was last changed more recently than the file was modified
- -ctime n: The file was last changed more than n days ago
- -empty: The file is empty
- -executable: The file is executable
- -false: Always false
- -fstype type: The file is on the specified file system
- -gid n: The file belongs to group with the ID n
- -group groupname: The file belongs to the named group
- -ilname pattern: Search for a symbolic line but ignore case
- -iname pattern: Search for a file but ignore case
- -inum n: Search for a file with the specified node
- -ipath path: Search for a path but ignore case
- -iregex expression: Search for a expression but ignore case
- -links n: Search for a file with the specified number of links
- -lname name: Search for a symbolic link
- -mmin n: File's data was last modified n minutes ago
- -mtime n: File's data was last modified n days ago
- -name name: Search for a file with the specified name
- -newer name: Search for a file edited more recently than the file given
- -nogroup: Search for a file with no group id
- -nouser: Search for a file with no user attached to it
- -path path: Search for a path
- -readable: Find files which are readable
- -regex pattern: Search for files matching a regular expression
- -type type: Search for a particular type
- -uid uid: Files numeric user id is the same as uid
- -user name: File is owned by user specified
- -writable: Search for files that can be written to
Example Usage of the Find Command
How to Find Files Accessed More Than a Certain Number of Days Ago
To find all the files within your home folder accessed more than 100 days ago:
How to Find Empty Files and Folders
To find all the empty files and folders in your system:
How to Find All of the Executable Files
To find all of the executable files on your computer:
How to Find All of the Readable Files
To find all of the files that are readable:
Patterns
When you search for a file you can use a pattern. For example, search for all files with the extension mp3:
How To Find Solaris Version Online
How to Send Output from the Find Command to a File
The main problem with the find command is that it can sometimes return too many results to look at in one go. Pipe the output to the tail command or you can output the lines to a file as follows:
How to Find and Execute a Command Against a File
To search for and edit a file at the same time:
How To Find Solaris Server Version
The above command searches for a file called filename and then runs the nano editor for the file that it finds.