Posts Tagged ‘command’
Files and folders with names beginning with a dot [.] are hidden or invisible in Linux. They are by default not shown when listing the directory content using the ls command.
To view the hidden files and folders, simply add the -a (or –all) option to the ls command, as in the following example;
$ ls
file [...]
The command used to list directory content in Linux is ls. With the -R option, ls will traverse the directory recursively, showing the content of the particular directory and all its subdirectories. Relative directory path is displayed before the directory content is actually listed.
The following is an example of the command in use;
$ ls -R [...]
Linux administrators have few options when it comes to adding a new user to the system, from filling up forms in distribution / desktop environment specific nice GUIs, to running through the command line with options and switches. For the geeky administratorss, there are always configuration files that can manually be edited just for this [...]
The program to extract rar files or archive in Linux is a program called unrar. It’s not installed by default in most Linux distributions, and the following command will install it in Ubuntu.
$ sudo apt-get install unrar
To extract a rar archive to the current working directory, the following command is used;
$ unrar e filename.rar
tar.bz2 is a format of a bzip2 compressed tar archived file. tar.bz2 files are normally smaller in size but require more CPU power to extract as compared to tar.gz files, a common format for file distribution in *nix.
To extract a tar.bz2 file, the most basic syntax is as the following;
tar xjf filename.tar.bz2
The command will extract [...]
tar.gz is a format of a gzip compressed tar archived file. It is a common format in distributing files in *nix.
To extract a tar.gz file, the most basic syntax is as the following;
tar xzf filename.tar.gz
The command will extract the file to the current working directory. Current versions of the tar program doesn’t require the -z [...]
The program used to display memory information is free. It displays usage information of both RAM and swap. Running it at the terminal will produce the following output;
$ free
total used [...]
The program to extract rar files or archive in Linux is a program called unrar. It’s not installed by default in most Linux distributions, and the following command will install it in Ubuntu.
$ sudo apt-get install unrar
To view the content (or list file) of rar files is to run the unrar program as the following;
$ [...]
tar.bz2 is a format of a bzip2 compressed tar archived file. tar.bz2 files are normally smaller in size but require more CPU power to extract as compared to tar.gz files, a common format for file distribution in *nix.
To view the content of a tar.bz2 file, the program tar and the following options are used;
$ tar [...]
tar.gz is a format of a gzip compressed tar archived file. It is a common format in distributing files in *nix.
To view the content of a tar.gz file, the program tar and the following options are used;
$ tar tf filename.tar.gz
The command will produce a list of files contained in the archive. If the list is [...]