chsh command in Linux with examples Last Updated : 26 Aug, 2021 Comments Improve Suggest changes Like Article Like Report chsh command in Linux is used to change the user's login shell(currently login shell). Shell is an interactive user interface with an operating system and can be considered an outer layer of the operating system. The bash shell is one of the most widely used login shells in Linux. This command allows the user to change the shell from the current shell. It can also give warning if the shell is not present in the /etc/shells file. The superuser can change the login shell for the existing accounts. Syntax: chsh [OPTIONS] [LOGIN] Example 1: To show the list of all shells. You can use echo command along with '$SHELL' to check the current shell Example 2: To change the current logging shell Options: -l: Used to specifies your login shell.-u: Prints the list of shells.-v: Shows information about version and exits.-s: Used to set the shell as your login shell. Comment More infoAdvertise with us Next Article chsh command in Linux with examples R RuchaDeodhar Follow Improve Article Tags : Linux-Unix Similar Reads 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 cfdisk command in Linux with examples cfdisk command is used to create, delete, and modify partitions on a disk device. It displays or manipulates the disk partition table by providing a text-based "graphical" interface. cfdisk /dev/sda Example: After running you get a prompt like this: Choose gpt from the list. Now you will see a parti 3 min read chage command in Linux with examples The 'chage' command in Linux is a powerful tool used to manage user password expiry and account aging information. It is particularly useful in environments where user access needs to be controlled over time, such as when login access is time-bound or when itâs necessary to enforce regular password 4 min read chattr and lsattr commands in Linux with examples In the world of Linux, managing file permissions and attributes is crucial for maintaining a secure and organized system. Two powerful commands that help control file and directory attributes are 'chattr' and 'lsattr'. These commands are essential for administrators and advanced users who need to pr 8 min read chfn command in Linux with examples '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 3 min read chgrp command in Linux with Examples The `chgrp` command in Linux is used to change the group ownership of a file or directory. All files in Linux belong to an owner and a group. You can set the owner by using âchownâ command, and the group by the "chgrp" command. Syntax of `chgrp` command in Linuxchgrp [OPTION]⦠GROUP FILE⦠chgrp [OPT 3 min read chkconfig command in Linux with Examples 'chkconfig' command is used to list all available services and view or update their run level settings. In simple words it is used to list current startup information of services or any particular service, update runlevel settings of service, and adding or removing service from management. Here weâl 3 min read How to Make Script Executable in Linux | chmod Command In Unix operating systems, the chmod command is used to change the access mode of a file. The name is an abbreviation of change mode. Which states that every file and directory has a set of permissions that control the permissions like who can read, write or execute the file. In this the permissions 7 min read How to Change File Ownership in Linux | chown Command In the Linux operating system, file ownership is a crucial aspect of system security and user management. The chown command, short for "change owner," is a powerful tool that allows users to change owner of file in Linux. This command is particularly useful in scenarios where administrators need to 9 min read Like