Your most frequent options are:
Examples:
To get only user account logins from the /etc/passwd file, using cut. In this case the delimiter will be the “:” and the first column.
$ cut —d”:” -f 1 /etc/passwd
To take just the first byte of the /etc/passwd file:
$ cut —b 1 /etc/passwd
To get group names:
$ cat /etc/group | cut -f1 -d': '
The cut command works just like the awk command. The following example produces the same result as the previous command:
$ awk -F': '' {print $1} '/etc/group
The sudo command on Linux executes a given command as if it were another user.…
The ss command on Linux is extremely useful for investigating sockets, providing various information about…
Free Linux command shows the amount of total memory in use and available, as well…
The shell has structures for testing conditions and executing certain program sequences several times (loop),…
The /etc/fstab file stores the configuration of which devices should be mounted and what is…
The Netcat Command in Linux or nc is a utility used to do “almost anything”…
This website uses cookies.