File root linux command line This guide will teach total beginners how to start using the terminal, understand key concepts, navigate the file system, and […] In conclusion, transferring files from a local Windows machine to a remote Linux server using the command prompt (CMD) is a powerful and efficient method for managing data. This tutorial covers how to use the chmod command to change the access permissions of files and directories. The most commonly used ones are: rootls: Lists the content of a ROOT file. To download a file from the internet, use the curl utility which allows you to interact with URLs on the command line; 馃憠 curl -OL <URL>. This doesn't work because the redirection is executed by the shell, not by the command it applies to. These editors are ideal for making fast edits or working on distant servers because they are lightweight and powerful. Aug 20, 2008 路 I've created a script that runs every night on my Linux server that uses mysqldump to back up each of my MySQL databases to . This will give you a detailed output of all the permissions for the file. txt Jan 9, 2025 路 Here, `ls` command shows existing files: ` a. Systemd based Linux users can use timedatectl to control the system time and date. Jun 6, 2013 路 @EliranMalka the difference between -r and -R seems to itself differ between different grep implementations. Helper Commands Jul 31, 2024 路 Though changing to command-line mode is a preference issue. According to its syntax, the sudo command can be used to run different commands with the root privileges like below. Create a plain textfile called mysqlfile. In Linux, everything is a file. Zip stores files with full filenames like folder/root_folder/some files/filename. Open the terminal. Type du -h file name in the prompt. This means your commands can be quite dangerous. The su command is used to change the user ID. gz file using the ls command and tar command; Let us see all commands and options in details. It works like this: cd [folder] Jan 2, 2025 路 Prerequisites: Admin Access; Familiar with Linux commands; Must know the Directory Structure (Linux Directory) Syntax of the CD Command in Linux. In this tutorial, we will show you how to change to the root account on a Linux system, and how to use sudo to execute commands with root privileges. Jul 16, 2013 路 Try: mysql -u username -p database_name < file. rootmv: Moves objects stored in a Nov 21, 2024 路 Since you are in the command line mode, you should use commands to read file in Linux. Mar 1, 2014 路 Note: The root directory (specified by a single forward slash “/”) is different from the home directory of the root user (located at “/root”). jpg, . For example, the output of “stat test. In other words, to become a superuser during a login session, use the su command. 5 commands to view files in Aug 22, 2024 路 The 'more' command in Linux is a useful tool for viewing text files in the command prompt, particularly when dealing with large files like log files. gz directory; Verify tar. 0; ssh -Y <user>@<server> filelight (replace filelight with your preferred tool). The command line allows a user to navigate the filesystem and run built-in programs or custom scripts. After installing run partprobe on the command line. cd command¶ The cd (Change Directory) command allows you to change the current directory -- in other words, to move through the tree. The sudo command allows users to do tasks on a Linux system as another user. rootrm: Deletes objects contained in a ROOT file. txt but has only the java version used to compile. I believe that the best way to understand any concept is by putting it into practice. Meskipun beberapa distribusi Linux memiliki GUI (antarmuka pengguna grafis), command atau perintah Linux akan lebih efisien dan fleksibel apabila dijalankan dengan CLI. audacity-files/plug-ins folder. Group: This type of file permission affects the group that owns the file. Although it may seem intimidating at first, learning command line basics is tremendously useful for developers and tech enthusiasts. I think a good place to start is to know exactly what the command line is. What I did at my place of work, is transfer the files to your home (~) folder (or really any folder that you have full permissions in, i. In this article, we will explain how to use the unzip command to unzip files in Linux systems. The current user password will be asked for Oct 1, 2013 路 How do I copy files from a USB flash drive in Ubuntu Linux from command line? When I copy these files from USB to a local folder I get "permissions denied" using the GUI. Let’s first be sure that we’re in the files/ directory of the /home/sammy user folder, which we can do by either verifying with pwd , or by changing directories on the Sep 26, 2024 路 Check File size with du command in Linux. Oct 20, 2010 路 The easiest and safest way I open the file explorer from command line is with the xdg-open command, which itself often aliased as the browse command if that's more your style. Mar 26, 2015 路 First thing I noticed when switched from Windows to Linux was, that Linux has no strict naming convention and no obligatory file name extensions like . The ‘cd’ command allows users to change their current working directory within the file system. When you want to rename a single file in Linux, the rename command comes in handy. e chmod 777 or variants) via WinSCP, and then SSH to to your linux machine and sudo from there to your destination folder. Apr 21, 2012 路 To open the folder as root in the grapical file manager, run the following command: gksu nautilus /etc/apt/ If you wish to do your operations from the command line , the following command enters the intended directory and makes you root. How to Remove Directories (Folders) # In Linux, you can remove/delete directories with the rmdir and rm. Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ – requires given linux commands to be executed as a regular non-privileged user Dec 13, 2011 路 You can do yes | cp -rf xxx yyy, but my gutfeeling says that if you do it as root - your . to your sources. This command transports us to the heart of the Linux file system hierarchy. Dec 7, 2023 路 Downloading files from the command line comes in handy on servers that don’t have a GUI, or for Linux users that simply do most of their tasks on the command line and find it speedier than opening a browser to initiate a download. cnf for MySQL and . Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ – requires given linux commands to be executed as a regular non-privileged user Jul 23, 2013 路 I develop a C code on Linux (Debian). The size will be displayed in Human Readable Format. Privileged access to your Linux system as root or via the sudo command. e. Mar 30, 2021 路 Copy or move the Nyquist plug-in file (with ny or NY file name extension) into the ~/. This is the name of your computer (i. bmp, . 5. This can be confusing at first, but just remember that the top of the directory tree is called the file system root. If all JPEG files on my file system had the . Go to /var/log directory using the following cd command: # cd /var/log To list files use the following ls command: # ls Sample outputs from RHEL 6. Jul 9, 2012 路 The dir can be set via command line or environment variable, the map is hard coded in the script, but you can modify the code to load from a file, if necessary. . `cat b. sql Check MySQL Options. This can be increased, too: root@linux:~# pvresize /dev/md1. Linux’s users normally use the command line interface (CLI) for writing or editing the text files. But you can also launch the command line by searching “Terminal” in the applications menu and running it. txt It worked because it is root, and el never entered a password. Read the following manual pages using the man command or help command: $ man 8 hwclock $ man 1 date $ man 8 timedatectl 1. Jan 26, 2024 路 Unzip is a command line tool that allows you to list, test, and extract compressed zip archives. Nov 11, 2021 路 Note: To illustrate how the find and locate commands work, the example commands in this guide search for files stored under /, or the root directory. txt b. In Mac, if you have a sudo command, it will ask for a password, and I don't want that. 6 located in /bin/psql. In this tutorial, we will show you how to use the mv and rename commands to rename files and directories. You can also set new timzone using Linux command line. Accessing the root directory is as simple as using the cd / command. The root user, the superuser or administrator, is the most privileged user on a Linux system. The Linux command line is a text interface to your computer. This feature allows you to perform multiple operations within the operating system with just a few commands. For example, when the GUI fails or has problems and cannot complete startup, we can use the command-line mode to troubleshoot. It allows a permitted user to execute a command as the superuser or another user, as specified in the /etc/sudoers (config file that defines or list of who can run what) file. . But your shell is not running as root, only echo 'text' is. Inspecting Files and Directories. By following the step-by-step guide outlined in this blog, you can establish a secure connection, utilize the SCP (Secure Copy Protocol) command, and successfully transfer May 13, 2006 路 You need to use the sudo command which is use to execute a command as another user. This tutorial has provided an in-depth exploration of the pivot_root command, from basic usage to more advanced scenarios. This command allows you to become a superuser or substitute user, spoof user, set user or switch user. Jan 11, 2022 路 Finally the root file system (ext4 in this example) can be extended (online!) with the following command: root@linux:~# resize2fs /dev/md0. One of the most useful commands in the Linux command line is the rm command. In Unix, the command line interface is called Bash, and the shell prompt is the $ . Oct 12, 2021 路 Privileged access to your Linux system as root or via the sudo command. sql. Note 2: Use -R and --triggers with mysqldump to keep the routines and triggers of the original database. Dec 17, 2023 路 Using unlink command # To remove a file with unlink, invole the command foolowed bythe name of the file you want to remove: unlink -u filename. Instead of the group permissions, the user permissions will apply if In order for a user to use sudo, the user account must belong to the sudo group and must also be listed in the /etc/sudoers file. The prompt ( root@localhost#) has three different parts: username: this is before @ symbol. Note 1: It is better to use the full path of the SQL file file. gz for given directory name by running: tar -czvf file. If both conditions are met, the user will be permitted to temporarily use root powers for specific commands that are issued at the command line by that user account by prefacing the command with the word sudo. $ or #: This gives a visual clue about current user. Don’t worry. Often referred to as the shell, terminal, console, prompt or various other names, it can give the appearance of being complex and confusing to use. Feb 12, 2020 路 You can rename files using a GUI file manager or via the command-line terminal. profile has an alias of cp to cp -i, most modern systems (primarily RH-derivatives) do that to root profiles. Find file owned by a group. Or some other kind of a read-only device. It worked. txt That will prints the 1st 10 lines of the above text file. Use the following syntax to find files owned by users(s) in Linux/Unix: find directory-location -group {group-name} -name {file-name} Where, directory-location: Locate the file in this directory May 8, 2024 路 bat command; How do I view log files on Linux? Open the Terminal or login as root user using ssh command. Aug 20, 2013 路 Thanks a lot Radu, I never thought of rsync for local use. cd stands for "change directory" and lets you move through the Linux file system. ROOT command line tools. This command is especially handy for reviewing long ou May 4, 2017 路 wrt "no GUI, is a server": you could install the GUI app (assuming you are happy with it and the support libraries being on a server) and use is on your local screen via X11-tunnelled-through-SSH with something like export DISPLAY=:0. ) (If you wanna share my mnemonic: "L" is for "Linux" and for "LF". This is the most often encountered Nov 6, 2024 路 The command line allows you to control your computer by typing commands rather than clicking buttons. jpg extension, I could simply find all JPEG files by: May 6, 2020 路 It can be installed using the below command. To land yourself in the root directory, all it takes is a simple command in the Terminal: cd /. The process for doing this will vary slightly, depending on what desktop Jan 1, 2021 路 Thanks for the post. It works like this: To access the root directory, follow these simple steps: To start, you need to open a terminal. 2, due to some new feature. ) The tilde (~) represents the home directory of the currently logged in user. When referring to this, you may have heard the terms Terminal, console, command line, CLI, and shell. The environment variables are only visible to the user running the mysql command, and root. The next ROOT command line tools. This is not explicit in this output. txt"). MF but it does not have the line which I had in manifest. People often use these words interchangeably but the truth is they're actually different things. Therefore I can not tell by the file name itself its file format. You may have noticed that your command prompt has changed. What is the root user in Linux? A. To search for files based on their type, use the -type option and one of the following descriptors to specify the file type: f: a regular file; d: directory; l: symbolic link; c: character devices; b: block The root user will also be able to log in in Single User Mode, which is better (in my opinion) than the Linux model where you can disable the root password passwd -d root, or lock the root account passwd -l root, both of which make logging in as root quite hard when something goes wrong. 1. The /dev/md1 device is used as Physical Volume. txt`. Here are five commands that let you view the content of a file in Linux terminal. Nov 3, 2024 路 Perhaps the best place to start is in browsing files. Renaming a single file is easy, but renaming multiple files at once can be a challenge, especially for users who are new to Linux. Command-line text editors are the preferred tools for file editing for a large number of Linux users. It's just the way file expects a "regular" text file to be. "touch blank_file"}} or add a file extension to the end of it (i. cnf). You can use the find command to search for a file or directory on your file system. It requires bash 4. Jan 15, 2016 路 AFAIK you can't do that. DEST Copy SOURCE(s) to DEST -a Same as -dpR -R,-r Recurse -d,-P Preserve symlinks (default if -R) -L Follow all symlinks -H Follow symlinks on command line -p Preserve file attributes if possible -f Overwrite -i Prompt before overwrite -l,-s Create (sym)links -T Treat DEST as a normal file -u Copy only newer files. It's implicit. In your case it's root. x server: To specify which file contains the program that starts system initialization, administrators can use this command line parameter. txt” looks like Apr 3, 2024 路 You can use find and locate commands in Linux to find folders and files from the command line. Besides supplying the user with a number of ways to interact with networks, the command line also allows users to navigate the file system. Jul 3, 2015 路 In order to install packages systemwide (what apt-get does), it needs root privileges, since you will be creating and changing system files (root is the usual name for the *nix administrator account). Nov 2, 2024 路 Type the name of the file and press ↵ Enter. Its primary purpose is to change user passwords, but it offers additional functionalities such as updating password aging policies, unlocking accounts, and more. Navigating to Root with the ‘cd‘ Command. Other times we might run into systems with low system resources that cannot support GUI and the Aug 15, 2024 路 su command. I am a fervent Linux user, but not proficient with the command line. A common trick when you need to have root permissions to write to a file, but not to generate the data, is to use tee: echo 'text' | sudo tee -a /file. If the plug-in includes a help file or help folder, that file should usually be copied or moved to the same location as the NY file. ~/. , but the files in that directory are still included. The Linux File System Unlike the drive-letter format on Windows, where files are organized under labels like C:\ or D:\, Linux uses a single-rooted structure that branches out from a single root directory. Aug 2, 2024 路 Exit from insert or command-line mode and return to command mode. Other use cases include downloading many files at once or an entire website. It displays the content one screen at a time, allowing users to scroll through the text easily. -D just prevents directory-file entries like folder/root_folder/some files to be included. In this tutorial, we will show you how to open the file explorer from a command line terminal on a Linux system. So it'll be like thís: #rsync -o -g --remove-source-files source dest Dec 24, 2017 路 Put it on a CD or a DVD. You can use this command to delete files and directories within the operating system. Which is why the command prompt is shown as #. Because of this, if you’re logged into the terminal as a non-root user, some of the example commands may include Permission denied in their output. txt` and ` b. head -n 20 filename. The default value of this parameter is “/init”. User: This type of file permission affects the owner of the file. Feb 24, 2020 路 (Every directory/file in the Linux filesystem is nested under the root / directory. Aug 9, 2020 路 Many of the commands we use inside the Chromebook Linux terminal will require root access. txt” Dec 16, 2021 路 Deleting the logs (all the subfolders and files that are within the logs folder) has to be done with the command rm -rf logs, without sudo involved, because it is made by a Makefile that is also executed in Mac computers. If the specified file exists and the kernel can execute it, root filesystem related kernel command line parameters, including ‘nfsroot=’, are ignored. Oct 21, 2024 路 The most interesting feature of Linux is its command line interface. Change into the directory where the file is located. Aug 29, 2024 路 In the realm of Linux, mastering the command line is essential for efficient and powerful usage of the operating system. Nov 19, 2020 路 Sometimes you might need to search for specific file types such as regular files, directories, or symlinks. 04, but generally exist on most other Linux distributions, unless they are just too hardcore for s'mores. pgpass for PostgreSQL. The file size will be listed on the first column. Jul 12, 2024 路 Types of file Permissions in Chown Command in Linux: There are three types of file permission in Chown Command in Linux discussed below. Apr 15, 2023 路 Fortunately, Linux gives us an easy way to open a file explorer and have it navigate directly to the directory we are currently viewing in the terminal. xdg-open can also open any file or web URL, and will open it according to your computer's default application for files of that filetype. The most common way to access the Linux root directory is by using the cd command in a terminal window. txt` initiates a forceful copy. On success, the command doesn’t produce any output and returns zero. To open a file or a directory or access a URL, type 馃憠 xdg-open <filename>/<directory>/<URL>. (And the other files have Unix (LF) line terminators. Overview. jar manifest. Jan 4, 2025 路 Examples of `rename` Command to remane File in Linux. tar. If you have any questions or feedback, feel free to leave a comment. Oct 8, 2019 路 New Linux users who are intimidated by the command line can use the GUI file manager to move their files. On BSD find use -x which is equivalent to the deprecated -xdev primary. Q. Among the number of command line tools available, `curl` stands out as one of the most versatile and powerful utilities. This structure may seem unfamiliar at first, but it's surprisingly logical once you This doesn't work for the simple reason that files aren't directories. The most efficient way to check file size in Linux is using du command. txt` displays the content of ` a. Nov 9, 2021 路 File systems refer to directories and files. Command to find a folder in Linux Jul 26, 2018 路 Configure WiFi using only command line utilities. for the command line is the Linux folder that’s in your Files App. Oct 23, 2023 路 Let us see how to use the find command to locate all files/folders owned by one or many users on Linux or Unix-like system. Aug 20, 2023 路 Here are some frequently asked questions (FAQs) about how to log in as a root user in Linux: Q. sql files and packages them together as a compressed . Jun 16, 2021 路 Now that we have a foundation in the Linux file system and how to get around it, let’s start creating new files and learn about how to manipulate text on the command line. gz file on Linux is as follows: Open the terminal application in Linux; Run tar command to create an archived named file. sudo command Command-Line Interface for Linux. 1) Renaming a Single File Using `rename` Command in Linux. we can view the text file with . This solution uses commands that exist on Ubuntu 22. hostname: this is after @ symbol. rootcp: Copies objects stored in a ROOT file to another ROOT file. The “stat” command is another Linux command that can be used to get file permissions. txt * and the jar file is created with an additional directory Meta-INF with the filename MANIFEST. Jul 19, 2024 路 Understanding the `passwd` Command. xdg-open ships natively with Ubuntu. ~ Switch the case of the character under the cursor. Check the plug-in documentation for details. a: Switch to insert mode after the cursor. Let’s consider an example where you have a file named “ file. Creating a file using `gedit` command in Linux. Head command Explanation: Generally head command used to print the starting lines of the any text file. To use “stat”, simply type “stat filename” at the command prompt. Dec 15, 2023 路 Used `ls` command to list files in the current directory and used ` cat ` command to see the content inside a file. Edit that file, put a single line in there: select * from mytable; Dec 7, 2023 路 Alternatively, elevate to the root account and open, edit, or execute the file that you needed permissions on with the following Linux command: $ su - # nano /path/to/config Keep in mind that you can also change the permissions on directories. exe etc. Using the cd command to go to the root directory. With the ROOT command line tools you can quickly inspect and modify the contents of ROOT files. ) Now let's convert the culprit and try Oct 20, 2020 路 Run Command with Root Privilege. If anyone asks you to run a command as the root user, you should always ensure you understand what that command does, and consider the possibility that it can be destructive to your system. partprobe utility is used to make sure the kernel is aware of the new Depending on the type of shell and the different parameters of its configuration file, the terminal prompt (also known as the command prompt) will display the absolute or relative path of the current directory. Dec 30, 2016 路 This is the root user. bashrc or . Using ROOT from Python. Graphical interfaces were later interpolations, and Linux wasn’t always as accessible to the everyday user. C: Delete from the cursor position to the end of the line and switch to insert mode. Jun 17, 2021 路 usermod command or modify user is a command in Linux that is used to change the properties of a user in Linux through the command line. To navigate to the root user’s home directory, /root, execute the following command: $ cd /root If you are already logged into the root user account, then just typing the following commands would also take you to the root user directory: Apr 15, 2023 路 The root account can be accessed either by logging directly into the account, or by using the sudo Linux command to temporarily access root and execute a command with administrator privileges. Google it if you have to. The pwd command shows our present working directory. If you expose your root, sudo, or power user password with this script, then acquiring root on your box will be easy. txt` displays the content of ` b. `cat a. (Needs to be used as root). ROOT provides Python bindings, called PyROOT, which allow to access all the ROOT C++ functionality from Python. Ok, I suppose you want a software solution, so here are some ideas: You could possibly create an SELinux ruleset that disables the syscall (*) that chattr uses, even for root. Such is the penalty for a security system that lets everybody in no questions asked. On the command line I c The following command not only find you the top 50 largest files (>100M) on your filesystem, but also sort (GNU sort) by the biggest: find / -xdev -type f -size +100M -exec du -sh {} ';' | sort -rh | head -n50 -xdev Don't descend directories on other filesystems. Your instructions to open the file manager worked well with Linux Mint 20, changing the file manager name to “nautilus” to “Caja”. → See ROOT command line tools. txt (note that the filename contains slashes). `cp -f a. The root user has unrestricted access to all files, directories, and system resources. The root user can do many things an ordinary user cannot, such as changing the ownership of files and binding to ports numbered below 1024. The smartest way to do this is to press Ctrl + Alt + T on your keyboard. If you want to specific on the number of lines which are to be view then you can use head as. "touch blank_file. The once-writable kind, not the erasable ones. In the following example, we will print the /etc/passwd content using the cat command. mv terminal Apr 5, 2022 路 Difference between console, command line (CLI), terminal and Shell. Oct 3, 2024 路 Find file Permissions with stat command in Linux. When requesting a connection through the command line, several parameters can Nov 6, 2024 路 The procedure to create a tar. The password will also be visible to anyone who can read the script itself, so make sure the script itself is protected. txt tee prints the text to stdout Dec 6, 2014 路 I ket the manifest. The info Oct 28, 2024 路 The pivot_root command is a powerful tool in the Linux command-line toolkit, enabling users to manipulate the root file system with precision and flexibility. Most command-line tools have Oct 25, 2010 路 The find command in Linux is used to find a file (or files) by recursively filtering objects in the file system based on a simple conditional mechanism. Aug 26, 2024 路 Using Command-Line Text Editors. ROOT also provides many command line tools at the system prompt for simple file operations or automating common operations performed on ROOT classes. The passwd command in Linux is a powerful tool that allows system administrators and users to manage password-related tasks. Some of the most well-liked command-line editors are listed below: 1. This navigation command overview will help you to better understand how all of this works. Sep 16, 2019 路 In Linux access to the files is managed through the file permissions, attributes and ownership. The «are you root?» message is a gentle reminder that you "need to be root" in order to run apt-get install. Table of Contents. This page shows how to search for folders in Linux using various command line utilities. txt in the same directory where my classes are and it had the value Main-Class: load. It acts as our all-access pass to delve into administrative tasks, manage system files, and wield the power of the root user. Time to time, I need to execute some commands through system() I wonder if it is possible to execute a command via system()as root. But in some instances, it might be the only option we have. sampLoad and I issed the command jar cfm load. Normally the passwd file can be only read by the root user. e localhost). This will work on any major Linux distribution. my. If it is not the case, is Feb 15, 2012 路 The password is not visible to other users on the system (it would be visible if it is on the command line). It’s easy as well essential that you learn how to read files in the line. This gives additional available space in the Volume Group and therefore to the Logical Volumes. This command is your secret passage to the foundational elements of the operating system, granting access to essential files and directories. These files should be in your home directory (i. Renaming Files with the mv The command line is the traditional mode of communication with Linux. Originally developed by Daniel Stenberg, `curl` is a comma Jan 8, 2025 路 Untuk mengelola perangkat remote Linux seperti VPS (virtual private server), administrator sistem umumnya menggunakan CLI (command-line interface). Nano May 16, 2024 路 In Linux and Unix-like computer operating systems, the root is the conventional name of the user who has all rights or permissions (to all files and programs) in all modes (single- or multi-user). The manpage for the GNU grep I have on Ubuntu seems to say that the only difference is that -R follows symlinks and -r does not (perhaps there were symlinks to folders in the folder you were testing in when you commented in 2015, explaining the behaviour you reported then?), but based Oct 2, 2006 路 Linux users can use date command to print or set the system date and time. apt install -y partprobe. U: Restore the current line to its original state before any changes were made. On a Linux OS, each morning a database is constructed that contains a list of all directory and files, and the locate command efficiently searches this database, so if you want to do a search for files that weren't created today, this would be the fastest way to accomplish such a task. tar file. It’s not at all complicated to display a file in Linux. Excellent! Now we know that our odd file has DOS (CRLF) line terminators. ls -l -rw-r--r-- 1 root root 0 Dec 2 14:48 myfile. head filename. txt" and you want to replace it with “name newfile. Linux create fdisk /dev/sda2 In fdisk use p to see partitions, then d to delete partition 2 (yes, delete! careful), then n to create partition 2 again, choose the same first block as the old partition 2, and the new last block, p again to check partition table, last is w to write (careful, use q if something doesn't look good, when you write w there is no way back). list file so Oct 13, 2014 路 However, this command is slower than the locate command. I added the --remove-source-files flag so that it acts as the mv command. It appears that you are on Kali Linux which by default logs you in as root. so in order to do that we use the Usermod command. Both for MySQL and PostgreSQL you can specify your user and password in local config file. You can type the filename by itself (i. You can check existing aliases by running alias at the command prompt, or which cp to check aliases only for cp. After creating a user we have to sometimes change their attributes like password or login directory etc. As with any Linux command, practice and exploration are key to Mar 16, 2012 路 Walk through on how to run an SQL on the command line for PostgreSQL in Linux: Open a terminal and make sure you can run the psql command: psql --version which psql Mine is version 9. A working Linux install with root privileges and a compatible wireless network adapter. lex blja psa jfier vjztq gblpks lchsd bfs jgdt uzoom