chfn command in Linux with examples Last Updated : 23 Sep, 2024 Comments Improve Suggest changes Like Article Like Report 'chfn' command in Linux allows you to change a user's name and other details easily. 'chfn' stands for Change finger. Basically, it is used to modify your finger information on Linux system. This information is generally stored in the file '/etc/passwd' that includes user's original name, work phone number etc. The 'chfn' command is particularly useful for updating user details on multi-user systems, ensuring that contact information is accurate and up-to-date.Here, we’ll explore the syntax, options, and examples of using the chfn command to modify user detailsSyntaxchfn [option] [login] where,[option]: The specific attribute you want to change (e.g., full name, phone number, etc.).[login]: The username of the account you want to modify.If no options are specified, the command will prompt the user to change various attributes interactively.Basic 'chfn' command ExampleIn this example we used default "chfn" command without any option. In this system asks from the user itself to change the values of some basic attributes. Key Options for the 'chfn' Command1. -f full_name: Let you change the full name on the account. sudo chfn -f Shivang123 shivang2. -w work_ph: Let you change the work phone number on the account. sudo chfn -w 124567890 shivang3. -r room_no: Let you change the room number on the account. sudo chfn -r 9999 shivang4. -h home_ph:Let you change the home phone number on the account. sudo chfn -h 123456 shivang5. -o other:Let you change any other detail on the account.sudo chfn -o "Manager, IT Department" shivangConclusionThe chfn command is a simple yet powerful tool for modifying user finger information on Linux systems. Whether you're updating your own details or managing a multi-user system, chfn makes it easy to keep user information accurate and up-to-date. By understanding the different options and how to use them effectively, you can ensure that the user details stored in '/etc/passwd' are always current, making the system more efficient and user-friendly. Comment More infoAdvertise with us S shivangsharma15 Follow Improve Article Tags : Linux-Unix linux-command Linux-system-commands Similar Reads bzgrep command in Linux with examples bzgrep is a Linux command used to search for a pattern or an expression inside a bzip2-compressed file. This command simply passes it's arguments and the decompressed files to grep. Therefore, all the flags used in the grep command remain the same in bzgrep, since they are simply sent to grep as the 2 min read bzip2 command in Linux with Examples bzip2 command in Linux is used to compress and decompress the files i.e. it helps in binding the files into a single file which takes less storage space than the original file used to take. It has a slower decompression time and higher memory use. It uses Burrows-Wheeler block sorting text compressi 3 min read bzless command in Linux with examples bzless is a command similar to bzmore, but it has many more features. bzless does not have to read the entire input file before starting, so with a large file, it starts up faster than text editors like vi. bzless uses termcap (or terminfo on some systems), so it can run on a variety of terminals. S 2 min read bzmore command in Linux with examples bzmore command in Linux is used as a filter for CRT viewing of bzip2 compressed files, which are saved with .bz2 suffix. In simple words, using 'bzmore', the content of the file can be viewed on the screen without uncompressing the file. bzip2 is a block-sorting file compressor which compresses file 3 min read cal command in Linux with Examples The 'cal' command in Linux is a versatile tool that displays calendars directly in the terminal. If a user wants a quick view of the calendar in the Linux terminal, 'cal' is the command for you. Hereâs a look at the usage and features of 'cal' command in Linux.What is the 'cal' command?cal command i 2 min read case command in Linux with examples The case command in Linux is an essential tool for simplifying script logic, especially when multiple if/elif conditions need to be evaluated for a single variable. It offers a more readable and efficient way to execute commands based on pattern matching, making your shell scripts easier to maintain 2 min read How to View the Content of File in Linux | cat Command The cat command in Linux is more than just a simple tool, it's a versatile companion for various file-related operations, allowing users to view, concatenate, create, copy, merge, and manipulate file contents. Let's see the details of some frequently used cat commands, understanding each example alo 7 min read cc command in Linux with Examples 'cc' command stands for C Compiler, usually an alias command to 'gcc' or 'clang'. As the name suggests, executing the 'cc' command will usually call the 'gcc' on Linux systems. It is used to compile the C language codes and create executables. The number of options available for the cc command is ve 3 min read Encrypt/Decrypt Files in Linux using Ccrypt Ccrypt is a command line tool for encryption and decryption of data. Ccrypt is based on the Rijndael cipher, the same cipher used in the AES standard. On the other hand, in the AES standard, a 128-bit block size is used, whereas ccrypt uses a 256-bit block size. Ccrypt commonly uses the .cpt file ex 3 min read How to Change the Directory in Linux | cd Command Navigating the Linux file system is like exploring a vast library; each directory (folder) holds its own collection of files and subdirectories, and knowing how to move between them efficiently is the first step to mastering the command line. The cd (Change Directory) command is your compass in this 7 min read Like